repo_name
stringlengths
1
52
repo_creator
stringclasses
6 values
programming_language
stringclasses
4 values
code
stringlengths
0
9.68M
num_lines
int64
1
234k
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Text; using System.Collections; using System.Threading; using System.Threading.Tasks; using Amazon.Runtime; namespace Amazon.BillingConductor.Model { /// <summary> /// Base class for ListPricingRules paginators. /// </summary> internal sealed partial class ListPricingRulesPaginator : IPaginator<ListPricingRulesResponse>, IListPricingRulesPaginator { private readonly IAmazonBillingConductor _client; private readonly ListPricingRulesRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<ListPricingRulesResponse> Responses => new PaginatedResponse<ListPricingRulesResponse>(this); /// <summary> /// Enumerable containing all of the PricingRules /// </summary> public IPaginatedEnumerable<PricingRuleListElement> PricingRules => new PaginatedResultKeyResponse<ListPricingRulesResponse, PricingRuleListElement>(this, (i) => i.PricingRules); internal ListPricingRulesPaginator(IAmazonBillingConductor client, ListPricingRulesRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<ListPricingRulesResponse> IPaginator<ListPricingRulesResponse>.Paginate() { if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) { throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); } PaginatorUtils.SetUserAgentAdditionOnRequest(_request); var nextToken = _request.NextToken; ListPricingRulesResponse response; do { _request.NextToken = nextToken; response = _client.ListPricingRules(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<ListPricingRulesResponse> IPaginator<ListPricingRulesResponse>.PaginateAsync(CancellationToken cancellationToken = default) { if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) { throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); } PaginatorUtils.SetUserAgentAdditionOnRequest(_request); var nextToken = _request.NextToken; ListPricingRulesResponse response; do { _request.NextToken = nextToken; response = await _client.ListPricingRulesAsync(_request, cancellationToken).ConfigureAwait(false); nextToken = response.NextToken; cancellationToken.ThrowIfCancellationRequested(); yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif } }
97
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Text; using System.Collections; using System.Threading; using System.Threading.Tasks; using Amazon.Runtime; namespace Amazon.BillingConductor.Model { /// <summary> /// Base class for ListResourcesAssociatedToCustomLineItem paginators. /// </summary> internal sealed partial class ListResourcesAssociatedToCustomLineItemPaginator : IPaginator<ListResourcesAssociatedToCustomLineItemResponse>, IListResourcesAssociatedToCustomLineItemPaginator { private readonly IAmazonBillingConductor _client; private readonly ListResourcesAssociatedToCustomLineItemRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<ListResourcesAssociatedToCustomLineItemResponse> Responses => new PaginatedResponse<ListResourcesAssociatedToCustomLineItemResponse>(this); /// <summary> /// Enumerable containing all of the AssociatedResources /// </summary> public IPaginatedEnumerable<ListResourcesAssociatedToCustomLineItemResponseElement> AssociatedResources => new PaginatedResultKeyResponse<ListResourcesAssociatedToCustomLineItemResponse, ListResourcesAssociatedToCustomLineItemResponseElement>(this, (i) => i.AssociatedResources); internal ListResourcesAssociatedToCustomLineItemPaginator(IAmazonBillingConductor client, ListResourcesAssociatedToCustomLineItemRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<ListResourcesAssociatedToCustomLineItemResponse> IPaginator<ListResourcesAssociatedToCustomLineItemResponse>.Paginate() { if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) { throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); } PaginatorUtils.SetUserAgentAdditionOnRequest(_request); var nextToken = _request.NextToken; ListResourcesAssociatedToCustomLineItemResponse response; do { _request.NextToken = nextToken; response = _client.ListResourcesAssociatedToCustomLineItem(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<ListResourcesAssociatedToCustomLineItemResponse> IPaginator<ListResourcesAssociatedToCustomLineItemResponse>.PaginateAsync(CancellationToken cancellationToken = default) { if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) { throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); } PaginatorUtils.SetUserAgentAdditionOnRequest(_request); var nextToken = _request.NextToken; ListResourcesAssociatedToCustomLineItemResponse response; do { _request.NextToken = nextToken; response = await _client.ListResourcesAssociatedToCustomLineItemAsync(_request, cancellationToken).ConfigureAwait(false); nextToken = response.NextToken; cancellationToken.ThrowIfCancellationRequested(); yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif } }
97
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Net; using Amazon.BillingConductor.Model; using Amazon.BillingConductor.Model.Internal.MarshallTransformations; using Amazon.BillingConductor.Internal; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Auth; using Amazon.Runtime.Internal.Transform; namespace Amazon.BillingConductor { /// <summary> /// Implementation for accessing BillingConductor /// /// Amazon Web Services Billing Conductor is a fully managed service that you can use /// to customize a <a href="https://docs.aws.amazon.com/billingconductor/latest/userguide/understanding-eb.html#eb-other-definitions">pro /// forma</a> version of your billing data each month, to accurately show or chargeback /// your end customers. Amazon Web Services Billing Conductor doesn't change the way you're /// billed by Amazon Web Services each month by design. Instead, it provides you with /// a mechanism to configure, generate, and display rates to certain customers over a /// given billing period. You can also analyze the difference between the rates you apply /// to your accounting groupings relative to your actual rates from Amazon Web Services. /// As a result of your Amazon Web Services Billing Conductor configuration, the payer /// account can also see the custom rate applied on the billing details page of the <a /// href="https://console.aws.amazon.com/billing">Amazon Web Services Billing console</a>, /// or configure a cost and usage report per billing group. /// /// /// <para> /// This documentation shows how you can configure Amazon Web Services Billing Conductor /// using its API. For more information about using the <a href="https://console.aws.amazon.com/billingconductor/">Amazon /// Web Services Billing Conductor</a> user interface, see the <a href="https://docs.aws.amazon.com/billingconductor/latest/userguide/what-is-billingconductor.html"> /// Amazon Web Services Billing Conductor User Guide</a>. /// </para> /// </summary> public partial class AmazonBillingConductorClient : AmazonServiceClient, IAmazonBillingConductor { private static IServiceMetadata serviceMetadata = new AmazonBillingConductorMetadata(); #if BCL45 || AWS_ASYNC_ENUMERABLES_API private IBillingConductorPaginatorFactory _paginators; /// <summary> /// Paginators for the service /// </summary> public IBillingConductorPaginatorFactory Paginators { get { if (this._paginators == null) { this._paginators = new BillingConductorPaginatorFactory(this); } return this._paginators; } } #endif #region Constructors /// <summary> /// Constructs AmazonBillingConductorClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// <code> /// &lt;?xml version="1.0" encoding="utf-8" ?&gt; /// &lt;configuration&gt; /// &lt;appSettings&gt; /// &lt;add key="AWSProfileName" value="AWS Default"/&gt; /// &lt;/appSettings&gt; /// &lt;/configuration&gt; /// </code> /// /// </summary> public AmazonBillingConductorClient() : base(FallbackCredentialsFactory.GetCredentials(), new AmazonBillingConductorConfig()) { } /// <summary> /// Constructs AmazonBillingConductorClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// <code> /// &lt;?xml version="1.0" encoding="utf-8" ?&gt; /// &lt;configuration&gt; /// &lt;appSettings&gt; /// &lt;add key="AWSProfileName" value="AWS Default"/&gt; /// &lt;/appSettings&gt; /// &lt;/configuration&gt; /// </code> /// /// </summary> /// <param name="region">The region to connect.</param> public AmazonBillingConductorClient(RegionEndpoint region) : base(FallbackCredentialsFactory.GetCredentials(), new AmazonBillingConductorConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonBillingConductorClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// <code> /// &lt;?xml version="1.0" encoding="utf-8" ?&gt; /// &lt;configuration&gt; /// &lt;appSettings&gt; /// &lt;add key="AWSProfileName" value="AWS Default"/&gt; /// &lt;/appSettings&gt; /// &lt;/configuration&gt; /// </code> /// /// </summary> /// <param name="config">The AmazonBillingConductorClient Configuration Object</param> public AmazonBillingConductorClient(AmazonBillingConductorConfig config) : base(FallbackCredentialsFactory.GetCredentials(), config) { } /// <summary> /// Constructs AmazonBillingConductorClient with AWS Credentials /// </summary> /// <param name="credentials">AWS Credentials</param> public AmazonBillingConductorClient(AWSCredentials credentials) : this(credentials, new AmazonBillingConductorConfig()) { } /// <summary> /// Constructs AmazonBillingConductorClient with AWS Credentials /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="region">The region to connect.</param> public AmazonBillingConductorClient(AWSCredentials credentials, RegionEndpoint region) : this(credentials, new AmazonBillingConductorConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonBillingConductorClient with AWS Credentials and an /// AmazonBillingConductorClient Configuration object. /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="clientConfig">The AmazonBillingConductorClient Configuration Object</param> public AmazonBillingConductorClient(AWSCredentials credentials, AmazonBillingConductorConfig clientConfig) : base(credentials, clientConfig) { } /// <summary> /// Constructs AmazonBillingConductorClient with AWS Access Key ID and AWS Secret Key /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> public AmazonBillingConductorClient(string awsAccessKeyId, string awsSecretAccessKey) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonBillingConductorConfig()) { } /// <summary> /// Constructs AmazonBillingConductorClient with AWS Access Key ID and AWS Secret Key /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="region">The region to connect.</param> public AmazonBillingConductorClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonBillingConductorConfig() {RegionEndpoint=region}) { } /// <summary> /// Constructs AmazonBillingConductorClient with AWS Access Key ID, AWS Secret Key and an /// AmazonBillingConductorClient Configuration object. /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="clientConfig">The AmazonBillingConductorClient Configuration Object</param> public AmazonBillingConductorClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonBillingConductorConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) { } /// <summary> /// Constructs AmazonBillingConductorClient with AWS Access Key ID and AWS Secret Key /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="awsSessionToken">AWS Session Token</param> public AmazonBillingConductorClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonBillingConductorConfig()) { } /// <summary> /// Constructs AmazonBillingConductorClient with AWS Access Key ID and AWS Secret Key /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="awsSessionToken">AWS Session Token</param> /// <param name="region">The region to connect.</param> public AmazonBillingConductorClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonBillingConductorConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonBillingConductorClient with AWS Access Key ID, AWS Secret Key and an /// AmazonBillingConductorClient Configuration object. /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="awsSessionToken">AWS Session Token</param> /// <param name="clientConfig">The AmazonBillingConductorClient Configuration Object</param> public AmazonBillingConductorClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonBillingConductorConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig) { } #endregion #region Overrides /// <summary> /// Creates the signer for the service. /// </summary> protected override AbstractAWSSigner CreateSigner() { return new AWS4Signer(); } /// <summary> /// Customize the pipeline /// </summary> /// <param name="pipeline"></param> protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline) { pipeline.RemoveHandler<Amazon.Runtime.Internal.EndpointResolver>(); pipeline.AddHandlerAfter<Amazon.Runtime.Internal.Marshaller>(new AmazonBillingConductorEndpointResolver()); } /// <summary> /// Capture metadata for the service. /// </summary> protected override IServiceMetadata ServiceMetadata { get { return serviceMetadata; } } #endregion #region Dispose /// <summary> /// Disposes the service client. /// </summary> protected override void Dispose(bool disposing) { base.Dispose(disposing); } #endregion #region AssociateAccounts /// <summary> /// Connects an array of account IDs in a consolidated billing family to a predefined /// billing group. The account IDs must be a part of the consolidated billing family during /// the current month, and not already associated with another billing group. The maximum /// number of accounts that can be associated in one call is 30. /// </summary> /// <param name="request">Container for the necessary parameters to execute the AssociateAccounts service method.</param> /// /// <returns>The response from the AssociateAccounts service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ServiceLimitExceededException"> /// The request would cause a service limit to exceed. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/AssociateAccounts">REST API Reference for AssociateAccounts Operation</seealso> public virtual AssociateAccountsResponse AssociateAccounts(AssociateAccountsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = AssociateAccountsRequestMarshaller.Instance; options.ResponseUnmarshaller = AssociateAccountsResponseUnmarshaller.Instance; return Invoke<AssociateAccountsResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the AssociateAccounts operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the AssociateAccounts operation on AmazonBillingConductorClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndAssociateAccounts /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/AssociateAccounts">REST API Reference for AssociateAccounts Operation</seealso> public virtual IAsyncResult BeginAssociateAccounts(AssociateAccountsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = AssociateAccountsRequestMarshaller.Instance; options.ResponseUnmarshaller = AssociateAccountsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the AssociateAccounts operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginAssociateAccounts.</param> /// /// <returns>Returns a AssociateAccountsResult from BillingConductor.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/AssociateAccounts">REST API Reference for AssociateAccounts Operation</seealso> public virtual AssociateAccountsResponse EndAssociateAccounts(IAsyncResult asyncResult) { return EndInvoke<AssociateAccountsResponse>(asyncResult); } #endregion #region AssociatePricingRules /// <summary> /// Connects an array of <code>PricingRuleArns</code> to a defined <code>PricingPlan</code>. /// The maximum number <code>PricingRuleArn</code> that can be associated in one call /// is 30. /// </summary> /// <param name="request">Container for the necessary parameters to execute the AssociatePricingRules service method.</param> /// /// <returns>The response from the AssociatePricingRules service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ServiceLimitExceededException"> /// The request would cause a service limit to exceed. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/AssociatePricingRules">REST API Reference for AssociatePricingRules Operation</seealso> public virtual AssociatePricingRulesResponse AssociatePricingRules(AssociatePricingRulesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = AssociatePricingRulesRequestMarshaller.Instance; options.ResponseUnmarshaller = AssociatePricingRulesResponseUnmarshaller.Instance; return Invoke<AssociatePricingRulesResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the AssociatePricingRules operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the AssociatePricingRules operation on AmazonBillingConductorClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndAssociatePricingRules /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/AssociatePricingRules">REST API Reference for AssociatePricingRules Operation</seealso> public virtual IAsyncResult BeginAssociatePricingRules(AssociatePricingRulesRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = AssociatePricingRulesRequestMarshaller.Instance; options.ResponseUnmarshaller = AssociatePricingRulesResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the AssociatePricingRules operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginAssociatePricingRules.</param> /// /// <returns>Returns a AssociatePricingRulesResult from BillingConductor.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/AssociatePricingRules">REST API Reference for AssociatePricingRules Operation</seealso> public virtual AssociatePricingRulesResponse EndAssociatePricingRules(IAsyncResult asyncResult) { return EndInvoke<AssociatePricingRulesResponse>(asyncResult); } #endregion #region BatchAssociateResourcesToCustomLineItem /// <summary> /// Associates a batch of resources to a percentage custom line item. /// </summary> /// <param name="request">Container for the necessary parameters to execute the BatchAssociateResourcesToCustomLineItem service method.</param> /// /// <returns>The response from the BatchAssociateResourcesToCustomLineItem service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ServiceLimitExceededException"> /// The request would cause a service limit to exceed. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/BatchAssociateResourcesToCustomLineItem">REST API Reference for BatchAssociateResourcesToCustomLineItem Operation</seealso> public virtual BatchAssociateResourcesToCustomLineItemResponse BatchAssociateResourcesToCustomLineItem(BatchAssociateResourcesToCustomLineItemRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = BatchAssociateResourcesToCustomLineItemRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchAssociateResourcesToCustomLineItemResponseUnmarshaller.Instance; return Invoke<BatchAssociateResourcesToCustomLineItemResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the BatchAssociateResourcesToCustomLineItem operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the BatchAssociateResourcesToCustomLineItem operation on AmazonBillingConductorClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndBatchAssociateResourcesToCustomLineItem /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/BatchAssociateResourcesToCustomLineItem">REST API Reference for BatchAssociateResourcesToCustomLineItem Operation</seealso> public virtual IAsyncResult BeginBatchAssociateResourcesToCustomLineItem(BatchAssociateResourcesToCustomLineItemRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = BatchAssociateResourcesToCustomLineItemRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchAssociateResourcesToCustomLineItemResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the BatchAssociateResourcesToCustomLineItem operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginBatchAssociateResourcesToCustomLineItem.</param> /// /// <returns>Returns a BatchAssociateResourcesToCustomLineItemResult from BillingConductor.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/BatchAssociateResourcesToCustomLineItem">REST API Reference for BatchAssociateResourcesToCustomLineItem Operation</seealso> public virtual BatchAssociateResourcesToCustomLineItemResponse EndBatchAssociateResourcesToCustomLineItem(IAsyncResult asyncResult) { return EndInvoke<BatchAssociateResourcesToCustomLineItemResponse>(asyncResult); } #endregion #region BatchDisassociateResourcesFromCustomLineItem /// <summary> /// Disassociates a batch of resources from a percentage custom line item. /// </summary> /// <param name="request">Container for the necessary parameters to execute the BatchDisassociateResourcesFromCustomLineItem service method.</param> /// /// <returns>The response from the BatchDisassociateResourcesFromCustomLineItem service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/BatchDisassociateResourcesFromCustomLineItem">REST API Reference for BatchDisassociateResourcesFromCustomLineItem Operation</seealso> public virtual BatchDisassociateResourcesFromCustomLineItemResponse BatchDisassociateResourcesFromCustomLineItem(BatchDisassociateResourcesFromCustomLineItemRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = BatchDisassociateResourcesFromCustomLineItemRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchDisassociateResourcesFromCustomLineItemResponseUnmarshaller.Instance; return Invoke<BatchDisassociateResourcesFromCustomLineItemResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the BatchDisassociateResourcesFromCustomLineItem operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the BatchDisassociateResourcesFromCustomLineItem operation on AmazonBillingConductorClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndBatchDisassociateResourcesFromCustomLineItem /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/BatchDisassociateResourcesFromCustomLineItem">REST API Reference for BatchDisassociateResourcesFromCustomLineItem Operation</seealso> public virtual IAsyncResult BeginBatchDisassociateResourcesFromCustomLineItem(BatchDisassociateResourcesFromCustomLineItemRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = BatchDisassociateResourcesFromCustomLineItemRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchDisassociateResourcesFromCustomLineItemResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the BatchDisassociateResourcesFromCustomLineItem operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginBatchDisassociateResourcesFromCustomLineItem.</param> /// /// <returns>Returns a BatchDisassociateResourcesFromCustomLineItemResult from BillingConductor.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/BatchDisassociateResourcesFromCustomLineItem">REST API Reference for BatchDisassociateResourcesFromCustomLineItem Operation</seealso> public virtual BatchDisassociateResourcesFromCustomLineItemResponse EndBatchDisassociateResourcesFromCustomLineItem(IAsyncResult asyncResult) { return EndInvoke<BatchDisassociateResourcesFromCustomLineItemResponse>(asyncResult); } #endregion #region CreateBillingGroup /// <summary> /// Creates a billing group that resembles a consolidated billing family that Amazon /// Web Services charges, based off of the predefined pricing plan computation. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateBillingGroup service method.</param> /// /// <returns>The response from the CreateBillingGroup service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ServiceLimitExceededException"> /// The request would cause a service limit to exceed. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/CreateBillingGroup">REST API Reference for CreateBillingGroup Operation</seealso> public virtual CreateBillingGroupResponse CreateBillingGroup(CreateBillingGroupRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateBillingGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateBillingGroupResponseUnmarshaller.Instance; return Invoke<CreateBillingGroupResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the CreateBillingGroup operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateBillingGroup operation on AmazonBillingConductorClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateBillingGroup /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/CreateBillingGroup">REST API Reference for CreateBillingGroup Operation</seealso> public virtual IAsyncResult BeginCreateBillingGroup(CreateBillingGroupRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CreateBillingGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateBillingGroupResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the CreateBillingGroup operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateBillingGroup.</param> /// /// <returns>Returns a CreateBillingGroupResult from BillingConductor.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/CreateBillingGroup">REST API Reference for CreateBillingGroup Operation</seealso> public virtual CreateBillingGroupResponse EndCreateBillingGroup(IAsyncResult asyncResult) { return EndInvoke<CreateBillingGroupResponse>(asyncResult); } #endregion #region CreateCustomLineItem /// <summary> /// Creates a custom line item that can be used to create a one-time fixed charge that /// can be applied to a single billing group for the current or previous billing period. /// The one-time fixed charge is either a fee or discount. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateCustomLineItem service method.</param> /// /// <returns>The response from the CreateCustomLineItem service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ServiceLimitExceededException"> /// The request would cause a service limit to exceed. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/CreateCustomLineItem">REST API Reference for CreateCustomLineItem Operation</seealso> public virtual CreateCustomLineItemResponse CreateCustomLineItem(CreateCustomLineItemRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateCustomLineItemRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateCustomLineItemResponseUnmarshaller.Instance; return Invoke<CreateCustomLineItemResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the CreateCustomLineItem operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateCustomLineItem operation on AmazonBillingConductorClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateCustomLineItem /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/CreateCustomLineItem">REST API Reference for CreateCustomLineItem Operation</seealso> public virtual IAsyncResult BeginCreateCustomLineItem(CreateCustomLineItemRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CreateCustomLineItemRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateCustomLineItemResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the CreateCustomLineItem operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateCustomLineItem.</param> /// /// <returns>Returns a CreateCustomLineItemResult from BillingConductor.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/CreateCustomLineItem">REST API Reference for CreateCustomLineItem Operation</seealso> public virtual CreateCustomLineItemResponse EndCreateCustomLineItem(IAsyncResult asyncResult) { return EndInvoke<CreateCustomLineItemResponse>(asyncResult); } #endregion #region CreatePricingPlan /// <summary> /// Creates a pricing plan that is used for computing Amazon Web Services charges for /// billing groups. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreatePricingPlan service method.</param> /// /// <returns>The response from the CreatePricingPlan service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ServiceLimitExceededException"> /// The request would cause a service limit to exceed. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/CreatePricingPlan">REST API Reference for CreatePricingPlan Operation</seealso> public virtual CreatePricingPlanResponse CreatePricingPlan(CreatePricingPlanRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreatePricingPlanRequestMarshaller.Instance; options.ResponseUnmarshaller = CreatePricingPlanResponseUnmarshaller.Instance; return Invoke<CreatePricingPlanResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the CreatePricingPlan operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreatePricingPlan operation on AmazonBillingConductorClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreatePricingPlan /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/CreatePricingPlan">REST API Reference for CreatePricingPlan Operation</seealso> public virtual IAsyncResult BeginCreatePricingPlan(CreatePricingPlanRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CreatePricingPlanRequestMarshaller.Instance; options.ResponseUnmarshaller = CreatePricingPlanResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the CreatePricingPlan operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreatePricingPlan.</param> /// /// <returns>Returns a CreatePricingPlanResult from BillingConductor.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/CreatePricingPlan">REST API Reference for CreatePricingPlan Operation</seealso> public virtual CreatePricingPlanResponse EndCreatePricingPlan(IAsyncResult asyncResult) { return EndInvoke<CreatePricingPlanResponse>(asyncResult); } #endregion #region CreatePricingRule /// <summary> /// Creates a pricing rule can be associated to a pricing plan, or a set of pricing plans. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreatePricingRule service method.</param> /// /// <returns>The response from the CreatePricingRule service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ServiceLimitExceededException"> /// The request would cause a service limit to exceed. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/CreatePricingRule">REST API Reference for CreatePricingRule Operation</seealso> public virtual CreatePricingRuleResponse CreatePricingRule(CreatePricingRuleRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreatePricingRuleRequestMarshaller.Instance; options.ResponseUnmarshaller = CreatePricingRuleResponseUnmarshaller.Instance; return Invoke<CreatePricingRuleResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the CreatePricingRule operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreatePricingRule operation on AmazonBillingConductorClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreatePricingRule /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/CreatePricingRule">REST API Reference for CreatePricingRule Operation</seealso> public virtual IAsyncResult BeginCreatePricingRule(CreatePricingRuleRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CreatePricingRuleRequestMarshaller.Instance; options.ResponseUnmarshaller = CreatePricingRuleResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the CreatePricingRule operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreatePricingRule.</param> /// /// <returns>Returns a CreatePricingRuleResult from BillingConductor.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/CreatePricingRule">REST API Reference for CreatePricingRule Operation</seealso> public virtual CreatePricingRuleResponse EndCreatePricingRule(IAsyncResult asyncResult) { return EndInvoke<CreatePricingRuleResponse>(asyncResult); } #endregion #region DeleteBillingGroup /// <summary> /// Deletes a billing group. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteBillingGroup service method.</param> /// /// <returns>The response from the DeleteBillingGroup service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/DeleteBillingGroup">REST API Reference for DeleteBillingGroup Operation</seealso> public virtual DeleteBillingGroupResponse DeleteBillingGroup(DeleteBillingGroupRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteBillingGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteBillingGroupResponseUnmarshaller.Instance; return Invoke<DeleteBillingGroupResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DeleteBillingGroup operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteBillingGroup operation on AmazonBillingConductorClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteBillingGroup /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/DeleteBillingGroup">REST API Reference for DeleteBillingGroup Operation</seealso> public virtual IAsyncResult BeginDeleteBillingGroup(DeleteBillingGroupRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteBillingGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteBillingGroupResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DeleteBillingGroup operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteBillingGroup.</param> /// /// <returns>Returns a DeleteBillingGroupResult from BillingConductor.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/DeleteBillingGroup">REST API Reference for DeleteBillingGroup Operation</seealso> public virtual DeleteBillingGroupResponse EndDeleteBillingGroup(IAsyncResult asyncResult) { return EndInvoke<DeleteBillingGroupResponse>(asyncResult); } #endregion #region DeleteCustomLineItem /// <summary> /// Deletes the custom line item identified by the given ARN in the current, or previous /// billing period. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteCustomLineItem service method.</param> /// /// <returns>The response from the DeleteCustomLineItem service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/DeleteCustomLineItem">REST API Reference for DeleteCustomLineItem Operation</seealso> public virtual DeleteCustomLineItemResponse DeleteCustomLineItem(DeleteCustomLineItemRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteCustomLineItemRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteCustomLineItemResponseUnmarshaller.Instance; return Invoke<DeleteCustomLineItemResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DeleteCustomLineItem operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteCustomLineItem operation on AmazonBillingConductorClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteCustomLineItem /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/DeleteCustomLineItem">REST API Reference for DeleteCustomLineItem Operation</seealso> public virtual IAsyncResult BeginDeleteCustomLineItem(DeleteCustomLineItemRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteCustomLineItemRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteCustomLineItemResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DeleteCustomLineItem operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteCustomLineItem.</param> /// /// <returns>Returns a DeleteCustomLineItemResult from BillingConductor.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/DeleteCustomLineItem">REST API Reference for DeleteCustomLineItem Operation</seealso> public virtual DeleteCustomLineItemResponse EndDeleteCustomLineItem(IAsyncResult asyncResult) { return EndInvoke<DeleteCustomLineItemResponse>(asyncResult); } #endregion #region DeletePricingPlan /// <summary> /// Deletes a pricing plan. The pricing plan must not be associated with any billing groups /// to delete successfully. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeletePricingPlan service method.</param> /// /// <returns>The response from the DeletePricingPlan service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/DeletePricingPlan">REST API Reference for DeletePricingPlan Operation</seealso> public virtual DeletePricingPlanResponse DeletePricingPlan(DeletePricingPlanRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeletePricingPlanRequestMarshaller.Instance; options.ResponseUnmarshaller = DeletePricingPlanResponseUnmarshaller.Instance; return Invoke<DeletePricingPlanResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DeletePricingPlan operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeletePricingPlan operation on AmazonBillingConductorClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeletePricingPlan /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/DeletePricingPlan">REST API Reference for DeletePricingPlan Operation</seealso> public virtual IAsyncResult BeginDeletePricingPlan(DeletePricingPlanRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeletePricingPlanRequestMarshaller.Instance; options.ResponseUnmarshaller = DeletePricingPlanResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DeletePricingPlan operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeletePricingPlan.</param> /// /// <returns>Returns a DeletePricingPlanResult from BillingConductor.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/DeletePricingPlan">REST API Reference for DeletePricingPlan Operation</seealso> public virtual DeletePricingPlanResponse EndDeletePricingPlan(IAsyncResult asyncResult) { return EndInvoke<DeletePricingPlanResponse>(asyncResult); } #endregion #region DeletePricingRule /// <summary> /// Deletes the pricing rule that's identified by the input Amazon Resource Name (ARN). /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeletePricingRule service method.</param> /// /// <returns>The response from the DeletePricingRule service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/DeletePricingRule">REST API Reference for DeletePricingRule Operation</seealso> public virtual DeletePricingRuleResponse DeletePricingRule(DeletePricingRuleRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeletePricingRuleRequestMarshaller.Instance; options.ResponseUnmarshaller = DeletePricingRuleResponseUnmarshaller.Instance; return Invoke<DeletePricingRuleResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DeletePricingRule operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeletePricingRule operation on AmazonBillingConductorClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeletePricingRule /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/DeletePricingRule">REST API Reference for DeletePricingRule Operation</seealso> public virtual IAsyncResult BeginDeletePricingRule(DeletePricingRuleRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeletePricingRuleRequestMarshaller.Instance; options.ResponseUnmarshaller = DeletePricingRuleResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DeletePricingRule operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeletePricingRule.</param> /// /// <returns>Returns a DeletePricingRuleResult from BillingConductor.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/DeletePricingRule">REST API Reference for DeletePricingRule Operation</seealso> public virtual DeletePricingRuleResponse EndDeletePricingRule(IAsyncResult asyncResult) { return EndInvoke<DeletePricingRuleResponse>(asyncResult); } #endregion #region DisassociateAccounts /// <summary> /// Removes the specified list of account IDs from the given billing group. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DisassociateAccounts service method.</param> /// /// <returns>The response from the DisassociateAccounts service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/DisassociateAccounts">REST API Reference for DisassociateAccounts Operation</seealso> public virtual DisassociateAccountsResponse DisassociateAccounts(DisassociateAccountsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DisassociateAccountsRequestMarshaller.Instance; options.ResponseUnmarshaller = DisassociateAccountsResponseUnmarshaller.Instance; return Invoke<DisassociateAccountsResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DisassociateAccounts operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DisassociateAccounts operation on AmazonBillingConductorClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDisassociateAccounts /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/DisassociateAccounts">REST API Reference for DisassociateAccounts Operation</seealso> public virtual IAsyncResult BeginDisassociateAccounts(DisassociateAccountsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DisassociateAccountsRequestMarshaller.Instance; options.ResponseUnmarshaller = DisassociateAccountsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DisassociateAccounts operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDisassociateAccounts.</param> /// /// <returns>Returns a DisassociateAccountsResult from BillingConductor.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/DisassociateAccounts">REST API Reference for DisassociateAccounts Operation</seealso> public virtual DisassociateAccountsResponse EndDisassociateAccounts(IAsyncResult asyncResult) { return EndInvoke<DisassociateAccountsResponse>(asyncResult); } #endregion #region DisassociatePricingRules /// <summary> /// Disassociates a list of pricing rules from a pricing plan. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DisassociatePricingRules service method.</param> /// /// <returns>The response from the DisassociatePricingRules service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/DisassociatePricingRules">REST API Reference for DisassociatePricingRules Operation</seealso> public virtual DisassociatePricingRulesResponse DisassociatePricingRules(DisassociatePricingRulesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DisassociatePricingRulesRequestMarshaller.Instance; options.ResponseUnmarshaller = DisassociatePricingRulesResponseUnmarshaller.Instance; return Invoke<DisassociatePricingRulesResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DisassociatePricingRules operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DisassociatePricingRules operation on AmazonBillingConductorClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDisassociatePricingRules /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/DisassociatePricingRules">REST API Reference for DisassociatePricingRules Operation</seealso> public virtual IAsyncResult BeginDisassociatePricingRules(DisassociatePricingRulesRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DisassociatePricingRulesRequestMarshaller.Instance; options.ResponseUnmarshaller = DisassociatePricingRulesResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DisassociatePricingRules operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDisassociatePricingRules.</param> /// /// <returns>Returns a DisassociatePricingRulesResult from BillingConductor.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/DisassociatePricingRules">REST API Reference for DisassociatePricingRules Operation</seealso> public virtual DisassociatePricingRulesResponse EndDisassociatePricingRules(IAsyncResult asyncResult) { return EndInvoke<DisassociatePricingRulesResponse>(asyncResult); } #endregion #region ListAccountAssociations /// <summary> /// This is a paginated call to list linked accounts that are linked to the payer account /// for the specified time period. If no information is provided, the current billing /// period is used. The response will optionally include the billing group that's associated /// with the linked account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListAccountAssociations service method.</param> /// /// <returns>The response from the ListAccountAssociations service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListAccountAssociations">REST API Reference for ListAccountAssociations Operation</seealso> public virtual ListAccountAssociationsResponse ListAccountAssociations(ListAccountAssociationsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListAccountAssociationsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListAccountAssociationsResponseUnmarshaller.Instance; return Invoke<ListAccountAssociationsResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the ListAccountAssociations operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListAccountAssociations operation on AmazonBillingConductorClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListAccountAssociations /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListAccountAssociations">REST API Reference for ListAccountAssociations Operation</seealso> public virtual IAsyncResult BeginListAccountAssociations(ListAccountAssociationsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListAccountAssociationsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListAccountAssociationsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the ListAccountAssociations operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListAccountAssociations.</param> /// /// <returns>Returns a ListAccountAssociationsResult from BillingConductor.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListAccountAssociations">REST API Reference for ListAccountAssociations Operation</seealso> public virtual ListAccountAssociationsResponse EndListAccountAssociations(IAsyncResult asyncResult) { return EndInvoke<ListAccountAssociationsResponse>(asyncResult); } #endregion #region ListBillingGroupCostReports /// <summary> /// A paginated call to retrieve a summary report of actual Amazon Web Services charges /// and the calculated Amazon Web Services charges based on the associated pricing plan /// of a billing group. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListBillingGroupCostReports service method.</param> /// /// <returns>The response from the ListBillingGroupCostReports service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListBillingGroupCostReports">REST API Reference for ListBillingGroupCostReports Operation</seealso> public virtual ListBillingGroupCostReportsResponse ListBillingGroupCostReports(ListBillingGroupCostReportsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListBillingGroupCostReportsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListBillingGroupCostReportsResponseUnmarshaller.Instance; return Invoke<ListBillingGroupCostReportsResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the ListBillingGroupCostReports operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListBillingGroupCostReports operation on AmazonBillingConductorClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListBillingGroupCostReports /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListBillingGroupCostReports">REST API Reference for ListBillingGroupCostReports Operation</seealso> public virtual IAsyncResult BeginListBillingGroupCostReports(ListBillingGroupCostReportsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListBillingGroupCostReportsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListBillingGroupCostReportsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the ListBillingGroupCostReports operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListBillingGroupCostReports.</param> /// /// <returns>Returns a ListBillingGroupCostReportsResult from BillingConductor.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListBillingGroupCostReports">REST API Reference for ListBillingGroupCostReports Operation</seealso> public virtual ListBillingGroupCostReportsResponse EndListBillingGroupCostReports(IAsyncResult asyncResult) { return EndInvoke<ListBillingGroupCostReportsResponse>(asyncResult); } #endregion #region ListBillingGroups /// <summary> /// A paginated call to retrieve a list of billing groups for the given billing period. /// If you don't provide a billing group, the current billing period is used. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListBillingGroups service method.</param> /// /// <returns>The response from the ListBillingGroups service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListBillingGroups">REST API Reference for ListBillingGroups Operation</seealso> public virtual ListBillingGroupsResponse ListBillingGroups(ListBillingGroupsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListBillingGroupsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListBillingGroupsResponseUnmarshaller.Instance; return Invoke<ListBillingGroupsResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the ListBillingGroups operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListBillingGroups operation on AmazonBillingConductorClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListBillingGroups /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListBillingGroups">REST API Reference for ListBillingGroups Operation</seealso> public virtual IAsyncResult BeginListBillingGroups(ListBillingGroupsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListBillingGroupsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListBillingGroupsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the ListBillingGroups operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListBillingGroups.</param> /// /// <returns>Returns a ListBillingGroupsResult from BillingConductor.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListBillingGroups">REST API Reference for ListBillingGroups Operation</seealso> public virtual ListBillingGroupsResponse EndListBillingGroups(IAsyncResult asyncResult) { return EndInvoke<ListBillingGroupsResponse>(asyncResult); } #endregion #region ListCustomLineItems /// <summary> /// A paginated call to get a list of all custom line items (FFLIs) for the given billing /// period. If you don't provide a billing period, the current billing period is used. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListCustomLineItems service method.</param> /// /// <returns>The response from the ListCustomLineItems service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListCustomLineItems">REST API Reference for ListCustomLineItems Operation</seealso> public virtual ListCustomLineItemsResponse ListCustomLineItems(ListCustomLineItemsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListCustomLineItemsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListCustomLineItemsResponseUnmarshaller.Instance; return Invoke<ListCustomLineItemsResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the ListCustomLineItems operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListCustomLineItems operation on AmazonBillingConductorClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListCustomLineItems /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListCustomLineItems">REST API Reference for ListCustomLineItems Operation</seealso> public virtual IAsyncResult BeginListCustomLineItems(ListCustomLineItemsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListCustomLineItemsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListCustomLineItemsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the ListCustomLineItems operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListCustomLineItems.</param> /// /// <returns>Returns a ListCustomLineItemsResult from BillingConductor.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListCustomLineItems">REST API Reference for ListCustomLineItems Operation</seealso> public virtual ListCustomLineItemsResponse EndListCustomLineItems(IAsyncResult asyncResult) { return EndInvoke<ListCustomLineItemsResponse>(asyncResult); } #endregion #region ListCustomLineItemVersions /// <summary> /// A paginated call to get a list of all custom line item versions. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListCustomLineItemVersions service method.</param> /// /// <returns>The response from the ListCustomLineItemVersions service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListCustomLineItemVersions">REST API Reference for ListCustomLineItemVersions Operation</seealso> public virtual ListCustomLineItemVersionsResponse ListCustomLineItemVersions(ListCustomLineItemVersionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListCustomLineItemVersionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListCustomLineItemVersionsResponseUnmarshaller.Instance; return Invoke<ListCustomLineItemVersionsResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the ListCustomLineItemVersions operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListCustomLineItemVersions operation on AmazonBillingConductorClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListCustomLineItemVersions /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListCustomLineItemVersions">REST API Reference for ListCustomLineItemVersions Operation</seealso> public virtual IAsyncResult BeginListCustomLineItemVersions(ListCustomLineItemVersionsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListCustomLineItemVersionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListCustomLineItemVersionsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the ListCustomLineItemVersions operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListCustomLineItemVersions.</param> /// /// <returns>Returns a ListCustomLineItemVersionsResult from BillingConductor.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListCustomLineItemVersions">REST API Reference for ListCustomLineItemVersions Operation</seealso> public virtual ListCustomLineItemVersionsResponse EndListCustomLineItemVersions(IAsyncResult asyncResult) { return EndInvoke<ListCustomLineItemVersionsResponse>(asyncResult); } #endregion #region ListPricingPlans /// <summary> /// A paginated call to get pricing plans for the given billing period. If you don't provide /// a billing period, the current billing period is used. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListPricingPlans service method.</param> /// /// <returns>The response from the ListPricingPlans service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListPricingPlans">REST API Reference for ListPricingPlans Operation</seealso> public virtual ListPricingPlansResponse ListPricingPlans(ListPricingPlansRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListPricingPlansRequestMarshaller.Instance; options.ResponseUnmarshaller = ListPricingPlansResponseUnmarshaller.Instance; return Invoke<ListPricingPlansResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the ListPricingPlans operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListPricingPlans operation on AmazonBillingConductorClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListPricingPlans /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListPricingPlans">REST API Reference for ListPricingPlans Operation</seealso> public virtual IAsyncResult BeginListPricingPlans(ListPricingPlansRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListPricingPlansRequestMarshaller.Instance; options.ResponseUnmarshaller = ListPricingPlansResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the ListPricingPlans operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListPricingPlans.</param> /// /// <returns>Returns a ListPricingPlansResult from BillingConductor.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListPricingPlans">REST API Reference for ListPricingPlans Operation</seealso> public virtual ListPricingPlansResponse EndListPricingPlans(IAsyncResult asyncResult) { return EndInvoke<ListPricingPlansResponse>(asyncResult); } #endregion #region ListPricingPlansAssociatedWithPricingRule /// <summary> /// A list of the pricing plans that are associated with a pricing rule. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListPricingPlansAssociatedWithPricingRule service method.</param> /// /// <returns>The response from the ListPricingPlansAssociatedWithPricingRule service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListPricingPlansAssociatedWithPricingRule">REST API Reference for ListPricingPlansAssociatedWithPricingRule Operation</seealso> public virtual ListPricingPlansAssociatedWithPricingRuleResponse ListPricingPlansAssociatedWithPricingRule(ListPricingPlansAssociatedWithPricingRuleRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListPricingPlansAssociatedWithPricingRuleRequestMarshaller.Instance; options.ResponseUnmarshaller = ListPricingPlansAssociatedWithPricingRuleResponseUnmarshaller.Instance; return Invoke<ListPricingPlansAssociatedWithPricingRuleResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the ListPricingPlansAssociatedWithPricingRule operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListPricingPlansAssociatedWithPricingRule operation on AmazonBillingConductorClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListPricingPlansAssociatedWithPricingRule /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListPricingPlansAssociatedWithPricingRule">REST API Reference for ListPricingPlansAssociatedWithPricingRule Operation</seealso> public virtual IAsyncResult BeginListPricingPlansAssociatedWithPricingRule(ListPricingPlansAssociatedWithPricingRuleRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListPricingPlansAssociatedWithPricingRuleRequestMarshaller.Instance; options.ResponseUnmarshaller = ListPricingPlansAssociatedWithPricingRuleResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the ListPricingPlansAssociatedWithPricingRule operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListPricingPlansAssociatedWithPricingRule.</param> /// /// <returns>Returns a ListPricingPlansAssociatedWithPricingRuleResult from BillingConductor.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListPricingPlansAssociatedWithPricingRule">REST API Reference for ListPricingPlansAssociatedWithPricingRule Operation</seealso> public virtual ListPricingPlansAssociatedWithPricingRuleResponse EndListPricingPlansAssociatedWithPricingRule(IAsyncResult asyncResult) { return EndInvoke<ListPricingPlansAssociatedWithPricingRuleResponse>(asyncResult); } #endregion #region ListPricingRules /// <summary> /// Describes a pricing rule that can be associated to a pricing plan, or set of pricing /// plans. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListPricingRules service method.</param> /// /// <returns>The response from the ListPricingRules service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListPricingRules">REST API Reference for ListPricingRules Operation</seealso> public virtual ListPricingRulesResponse ListPricingRules(ListPricingRulesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListPricingRulesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListPricingRulesResponseUnmarshaller.Instance; return Invoke<ListPricingRulesResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the ListPricingRules operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListPricingRules operation on AmazonBillingConductorClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListPricingRules /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListPricingRules">REST API Reference for ListPricingRules Operation</seealso> public virtual IAsyncResult BeginListPricingRules(ListPricingRulesRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListPricingRulesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListPricingRulesResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the ListPricingRules operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListPricingRules.</param> /// /// <returns>Returns a ListPricingRulesResult from BillingConductor.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListPricingRules">REST API Reference for ListPricingRules Operation</seealso> public virtual ListPricingRulesResponse EndListPricingRules(IAsyncResult asyncResult) { return EndInvoke<ListPricingRulesResponse>(asyncResult); } #endregion #region ListPricingRulesAssociatedToPricingPlan /// <summary> /// Lists the pricing rules that are associated with a pricing plan. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListPricingRulesAssociatedToPricingPlan service method.</param> /// /// <returns>The response from the ListPricingRulesAssociatedToPricingPlan service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListPricingRulesAssociatedToPricingPlan">REST API Reference for ListPricingRulesAssociatedToPricingPlan Operation</seealso> public virtual ListPricingRulesAssociatedToPricingPlanResponse ListPricingRulesAssociatedToPricingPlan(ListPricingRulesAssociatedToPricingPlanRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListPricingRulesAssociatedToPricingPlanRequestMarshaller.Instance; options.ResponseUnmarshaller = ListPricingRulesAssociatedToPricingPlanResponseUnmarshaller.Instance; return Invoke<ListPricingRulesAssociatedToPricingPlanResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the ListPricingRulesAssociatedToPricingPlan operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListPricingRulesAssociatedToPricingPlan operation on AmazonBillingConductorClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListPricingRulesAssociatedToPricingPlan /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListPricingRulesAssociatedToPricingPlan">REST API Reference for ListPricingRulesAssociatedToPricingPlan Operation</seealso> public virtual IAsyncResult BeginListPricingRulesAssociatedToPricingPlan(ListPricingRulesAssociatedToPricingPlanRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListPricingRulesAssociatedToPricingPlanRequestMarshaller.Instance; options.ResponseUnmarshaller = ListPricingRulesAssociatedToPricingPlanResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the ListPricingRulesAssociatedToPricingPlan operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListPricingRulesAssociatedToPricingPlan.</param> /// /// <returns>Returns a ListPricingRulesAssociatedToPricingPlanResult from BillingConductor.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListPricingRulesAssociatedToPricingPlan">REST API Reference for ListPricingRulesAssociatedToPricingPlan Operation</seealso> public virtual ListPricingRulesAssociatedToPricingPlanResponse EndListPricingRulesAssociatedToPricingPlan(IAsyncResult asyncResult) { return EndInvoke<ListPricingRulesAssociatedToPricingPlanResponse>(asyncResult); } #endregion #region ListResourcesAssociatedToCustomLineItem /// <summary> /// List the resources that are associated to a custom line item. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListResourcesAssociatedToCustomLineItem service method.</param> /// /// <returns>The response from the ListResourcesAssociatedToCustomLineItem service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListResourcesAssociatedToCustomLineItem">REST API Reference for ListResourcesAssociatedToCustomLineItem Operation</seealso> public virtual ListResourcesAssociatedToCustomLineItemResponse ListResourcesAssociatedToCustomLineItem(ListResourcesAssociatedToCustomLineItemRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListResourcesAssociatedToCustomLineItemRequestMarshaller.Instance; options.ResponseUnmarshaller = ListResourcesAssociatedToCustomLineItemResponseUnmarshaller.Instance; return Invoke<ListResourcesAssociatedToCustomLineItemResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the ListResourcesAssociatedToCustomLineItem operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListResourcesAssociatedToCustomLineItem operation on AmazonBillingConductorClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListResourcesAssociatedToCustomLineItem /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListResourcesAssociatedToCustomLineItem">REST API Reference for ListResourcesAssociatedToCustomLineItem Operation</seealso> public virtual IAsyncResult BeginListResourcesAssociatedToCustomLineItem(ListResourcesAssociatedToCustomLineItemRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListResourcesAssociatedToCustomLineItemRequestMarshaller.Instance; options.ResponseUnmarshaller = ListResourcesAssociatedToCustomLineItemResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the ListResourcesAssociatedToCustomLineItem operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListResourcesAssociatedToCustomLineItem.</param> /// /// <returns>Returns a ListResourcesAssociatedToCustomLineItemResult from BillingConductor.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListResourcesAssociatedToCustomLineItem">REST API Reference for ListResourcesAssociatedToCustomLineItem Operation</seealso> public virtual ListResourcesAssociatedToCustomLineItemResponse EndListResourcesAssociatedToCustomLineItem(IAsyncResult asyncResult) { return EndInvoke<ListResourcesAssociatedToCustomLineItemResponse>(asyncResult); } #endregion #region ListTagsForResource /// <summary> /// A list the tags for a resource. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListTagsForResource service method.</param> /// /// <returns>The response from the ListTagsForResource service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso> public virtual ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance; return Invoke<ListTagsForResourceResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the ListTagsForResource operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListTagsForResource operation on AmazonBillingConductorClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListTagsForResource /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso> public virtual IAsyncResult BeginListTagsForResource(ListTagsForResourceRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the ListTagsForResource operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListTagsForResource.</param> /// /// <returns>Returns a ListTagsForResourceResult from BillingConductor.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso> public virtual ListTagsForResourceResponse EndListTagsForResource(IAsyncResult asyncResult) { return EndInvoke<ListTagsForResourceResponse>(asyncResult); } #endregion #region TagResource /// <summary> /// Associates the specified tags to a resource with the specified <code>resourceArn</code>. /// If existing tags on a resource are not specified in the request parameters, they are /// not changed. /// </summary> /// <param name="request">Container for the necessary parameters to execute the TagResource service method.</param> /// /// <returns>The response from the TagResource service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/TagResource">REST API Reference for TagResource Operation</seealso> public virtual TagResourceResponse TagResource(TagResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = TagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance; return Invoke<TagResourceResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the TagResource operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the TagResource operation on AmazonBillingConductorClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndTagResource /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/TagResource">REST API Reference for TagResource Operation</seealso> public virtual IAsyncResult BeginTagResource(TagResourceRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = TagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the TagResource operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginTagResource.</param> /// /// <returns>Returns a TagResourceResult from BillingConductor.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/TagResource">REST API Reference for TagResource Operation</seealso> public virtual TagResourceResponse EndTagResource(IAsyncResult asyncResult) { return EndInvoke<TagResourceResponse>(asyncResult); } #endregion #region UntagResource /// <summary> /// Deletes specified tags from a resource. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UntagResource service method.</param> /// /// <returns>The response from the UntagResource service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/UntagResource">REST API Reference for UntagResource Operation</seealso> public virtual UntagResourceResponse UntagResource(UntagResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UntagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance; return Invoke<UntagResourceResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the UntagResource operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UntagResource operation on AmazonBillingConductorClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUntagResource /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/UntagResource">REST API Reference for UntagResource Operation</seealso> public virtual IAsyncResult BeginUntagResource(UntagResourceRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UntagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the UntagResource operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUntagResource.</param> /// /// <returns>Returns a UntagResourceResult from BillingConductor.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/UntagResource">REST API Reference for UntagResource Operation</seealso> public virtual UntagResourceResponse EndUntagResource(IAsyncResult asyncResult) { return EndInvoke<UntagResourceResponse>(asyncResult); } #endregion #region UpdateBillingGroup /// <summary> /// This updates an existing billing group. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateBillingGroup service method.</param> /// /// <returns>The response from the UpdateBillingGroup service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/UpdateBillingGroup">REST API Reference for UpdateBillingGroup Operation</seealso> public virtual UpdateBillingGroupResponse UpdateBillingGroup(UpdateBillingGroupRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateBillingGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateBillingGroupResponseUnmarshaller.Instance; return Invoke<UpdateBillingGroupResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the UpdateBillingGroup operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateBillingGroup operation on AmazonBillingConductorClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateBillingGroup /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/UpdateBillingGroup">REST API Reference for UpdateBillingGroup Operation</seealso> public virtual IAsyncResult BeginUpdateBillingGroup(UpdateBillingGroupRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateBillingGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateBillingGroupResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the UpdateBillingGroup operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateBillingGroup.</param> /// /// <returns>Returns a UpdateBillingGroupResult from BillingConductor.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/UpdateBillingGroup">REST API Reference for UpdateBillingGroup Operation</seealso> public virtual UpdateBillingGroupResponse EndUpdateBillingGroup(IAsyncResult asyncResult) { return EndInvoke<UpdateBillingGroupResponse>(asyncResult); } #endregion #region UpdateCustomLineItem /// <summary> /// Update an existing custom line item in the current or previous billing period. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateCustomLineItem service method.</param> /// /// <returns>The response from the UpdateCustomLineItem service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/UpdateCustomLineItem">REST API Reference for UpdateCustomLineItem Operation</seealso> public virtual UpdateCustomLineItemResponse UpdateCustomLineItem(UpdateCustomLineItemRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateCustomLineItemRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateCustomLineItemResponseUnmarshaller.Instance; return Invoke<UpdateCustomLineItemResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the UpdateCustomLineItem operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateCustomLineItem operation on AmazonBillingConductorClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateCustomLineItem /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/UpdateCustomLineItem">REST API Reference for UpdateCustomLineItem Operation</seealso> public virtual IAsyncResult BeginUpdateCustomLineItem(UpdateCustomLineItemRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateCustomLineItemRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateCustomLineItemResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the UpdateCustomLineItem operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateCustomLineItem.</param> /// /// <returns>Returns a UpdateCustomLineItemResult from BillingConductor.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/UpdateCustomLineItem">REST API Reference for UpdateCustomLineItem Operation</seealso> public virtual UpdateCustomLineItemResponse EndUpdateCustomLineItem(IAsyncResult asyncResult) { return EndInvoke<UpdateCustomLineItemResponse>(asyncResult); } #endregion #region UpdatePricingPlan /// <summary> /// This updates an existing pricing plan. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdatePricingPlan service method.</param> /// /// <returns>The response from the UpdatePricingPlan service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/UpdatePricingPlan">REST API Reference for UpdatePricingPlan Operation</seealso> public virtual UpdatePricingPlanResponse UpdatePricingPlan(UpdatePricingPlanRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdatePricingPlanRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdatePricingPlanResponseUnmarshaller.Instance; return Invoke<UpdatePricingPlanResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the UpdatePricingPlan operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdatePricingPlan operation on AmazonBillingConductorClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdatePricingPlan /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/UpdatePricingPlan">REST API Reference for UpdatePricingPlan Operation</seealso> public virtual IAsyncResult BeginUpdatePricingPlan(UpdatePricingPlanRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UpdatePricingPlanRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdatePricingPlanResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the UpdatePricingPlan operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdatePricingPlan.</param> /// /// <returns>Returns a UpdatePricingPlanResult from BillingConductor.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/UpdatePricingPlan">REST API Reference for UpdatePricingPlan Operation</seealso> public virtual UpdatePricingPlanResponse EndUpdatePricingPlan(IAsyncResult asyncResult) { return EndInvoke<UpdatePricingPlanResponse>(asyncResult); } #endregion #region UpdatePricingRule /// <summary> /// Updates an existing pricing rule. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdatePricingRule service method.</param> /// /// <returns>The response from the UpdatePricingRule service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/UpdatePricingRule">REST API Reference for UpdatePricingRule Operation</seealso> public virtual UpdatePricingRuleResponse UpdatePricingRule(UpdatePricingRuleRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdatePricingRuleRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdatePricingRuleResponseUnmarshaller.Instance; return Invoke<UpdatePricingRuleResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the UpdatePricingRule operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdatePricingRule operation on AmazonBillingConductorClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdatePricingRule /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/UpdatePricingRule">REST API Reference for UpdatePricingRule Operation</seealso> public virtual IAsyncResult BeginUpdatePricingRule(UpdatePricingRuleRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UpdatePricingRuleRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdatePricingRuleResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the UpdatePricingRule operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdatePricingRule.</param> /// /// <returns>Returns a UpdatePricingRuleResult from BillingConductor.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/UpdatePricingRule">REST API Reference for UpdatePricingRule Operation</seealso> public virtual UpdatePricingRuleResponse EndUpdatePricingRule(IAsyncResult asyncResult) { return EndInvoke<UpdatePricingRuleResponse>(asyncResult); } #endregion } }
2,487
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using System.Collections.Generic; using Amazon.Runtime; using Amazon.BillingConductor.Model; namespace Amazon.BillingConductor { /// <summary> /// Interface for accessing BillingConductor /// /// Amazon Web Services Billing Conductor is a fully managed service that you can use /// to customize a <a href="https://docs.aws.amazon.com/billingconductor/latest/userguide/understanding-eb.html#eb-other-definitions">pro /// forma</a> version of your billing data each month, to accurately show or chargeback /// your end customers. Amazon Web Services Billing Conductor doesn't change the way you're /// billed by Amazon Web Services each month by design. Instead, it provides you with /// a mechanism to configure, generate, and display rates to certain customers over a /// given billing period. You can also analyze the difference between the rates you apply /// to your accounting groupings relative to your actual rates from Amazon Web Services. /// As a result of your Amazon Web Services Billing Conductor configuration, the payer /// account can also see the custom rate applied on the billing details page of the <a /// href="https://console.aws.amazon.com/billing">Amazon Web Services Billing console</a>, /// or configure a cost and usage report per billing group. /// /// /// <para> /// This documentation shows how you can configure Amazon Web Services Billing Conductor /// using its API. For more information about using the <a href="https://console.aws.amazon.com/billingconductor/">Amazon /// Web Services Billing Conductor</a> user interface, see the <a href="https://docs.aws.amazon.com/billingconductor/latest/userguide/what-is-billingconductor.html"> /// Amazon Web Services Billing Conductor User Guide</a>. /// </para> /// </summary> public partial interface IAmazonBillingConductor : IAmazonService, IDisposable { #if BCL45 || AWS_ASYNC_ENUMERABLES_API /// <summary> /// Paginators for the service /// </summary> IBillingConductorPaginatorFactory Paginators { get; } #endif #region AssociateAccounts /// <summary> /// Connects an array of account IDs in a consolidated billing family to a predefined /// billing group. The account IDs must be a part of the consolidated billing family during /// the current month, and not already associated with another billing group. The maximum /// number of accounts that can be associated in one call is 30. /// </summary> /// <param name="request">Container for the necessary parameters to execute the AssociateAccounts service method.</param> /// /// <returns>The response from the AssociateAccounts service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ServiceLimitExceededException"> /// The request would cause a service limit to exceed. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/AssociateAccounts">REST API Reference for AssociateAccounts Operation</seealso> AssociateAccountsResponse AssociateAccounts(AssociateAccountsRequest request); /// <summary> /// Initiates the asynchronous execution of the AssociateAccounts operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the AssociateAccounts operation on AmazonBillingConductorClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndAssociateAccounts /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/AssociateAccounts">REST API Reference for AssociateAccounts Operation</seealso> IAsyncResult BeginAssociateAccounts(AssociateAccountsRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the AssociateAccounts operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginAssociateAccounts.</param> /// /// <returns>Returns a AssociateAccountsResult from BillingConductor.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/AssociateAccounts">REST API Reference for AssociateAccounts Operation</seealso> AssociateAccountsResponse EndAssociateAccounts(IAsyncResult asyncResult); #endregion #region AssociatePricingRules /// <summary> /// Connects an array of <code>PricingRuleArns</code> to a defined <code>PricingPlan</code>. /// The maximum number <code>PricingRuleArn</code> that can be associated in one call /// is 30. /// </summary> /// <param name="request">Container for the necessary parameters to execute the AssociatePricingRules service method.</param> /// /// <returns>The response from the AssociatePricingRules service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ServiceLimitExceededException"> /// The request would cause a service limit to exceed. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/AssociatePricingRules">REST API Reference for AssociatePricingRules Operation</seealso> AssociatePricingRulesResponse AssociatePricingRules(AssociatePricingRulesRequest request); /// <summary> /// Initiates the asynchronous execution of the AssociatePricingRules operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the AssociatePricingRules operation on AmazonBillingConductorClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndAssociatePricingRules /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/AssociatePricingRules">REST API Reference for AssociatePricingRules Operation</seealso> IAsyncResult BeginAssociatePricingRules(AssociatePricingRulesRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the AssociatePricingRules operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginAssociatePricingRules.</param> /// /// <returns>Returns a AssociatePricingRulesResult from BillingConductor.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/AssociatePricingRules">REST API Reference for AssociatePricingRules Operation</seealso> AssociatePricingRulesResponse EndAssociatePricingRules(IAsyncResult asyncResult); #endregion #region BatchAssociateResourcesToCustomLineItem /// <summary> /// Associates a batch of resources to a percentage custom line item. /// </summary> /// <param name="request">Container for the necessary parameters to execute the BatchAssociateResourcesToCustomLineItem service method.</param> /// /// <returns>The response from the BatchAssociateResourcesToCustomLineItem service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ServiceLimitExceededException"> /// The request would cause a service limit to exceed. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/BatchAssociateResourcesToCustomLineItem">REST API Reference for BatchAssociateResourcesToCustomLineItem Operation</seealso> BatchAssociateResourcesToCustomLineItemResponse BatchAssociateResourcesToCustomLineItem(BatchAssociateResourcesToCustomLineItemRequest request); /// <summary> /// Initiates the asynchronous execution of the BatchAssociateResourcesToCustomLineItem operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the BatchAssociateResourcesToCustomLineItem operation on AmazonBillingConductorClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndBatchAssociateResourcesToCustomLineItem /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/BatchAssociateResourcesToCustomLineItem">REST API Reference for BatchAssociateResourcesToCustomLineItem Operation</seealso> IAsyncResult BeginBatchAssociateResourcesToCustomLineItem(BatchAssociateResourcesToCustomLineItemRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the BatchAssociateResourcesToCustomLineItem operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginBatchAssociateResourcesToCustomLineItem.</param> /// /// <returns>Returns a BatchAssociateResourcesToCustomLineItemResult from BillingConductor.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/BatchAssociateResourcesToCustomLineItem">REST API Reference for BatchAssociateResourcesToCustomLineItem Operation</seealso> BatchAssociateResourcesToCustomLineItemResponse EndBatchAssociateResourcesToCustomLineItem(IAsyncResult asyncResult); #endregion #region BatchDisassociateResourcesFromCustomLineItem /// <summary> /// Disassociates a batch of resources from a percentage custom line item. /// </summary> /// <param name="request">Container for the necessary parameters to execute the BatchDisassociateResourcesFromCustomLineItem service method.</param> /// /// <returns>The response from the BatchDisassociateResourcesFromCustomLineItem service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/BatchDisassociateResourcesFromCustomLineItem">REST API Reference for BatchDisassociateResourcesFromCustomLineItem Operation</seealso> BatchDisassociateResourcesFromCustomLineItemResponse BatchDisassociateResourcesFromCustomLineItem(BatchDisassociateResourcesFromCustomLineItemRequest request); /// <summary> /// Initiates the asynchronous execution of the BatchDisassociateResourcesFromCustomLineItem operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the BatchDisassociateResourcesFromCustomLineItem operation on AmazonBillingConductorClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndBatchDisassociateResourcesFromCustomLineItem /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/BatchDisassociateResourcesFromCustomLineItem">REST API Reference for BatchDisassociateResourcesFromCustomLineItem Operation</seealso> IAsyncResult BeginBatchDisassociateResourcesFromCustomLineItem(BatchDisassociateResourcesFromCustomLineItemRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the BatchDisassociateResourcesFromCustomLineItem operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginBatchDisassociateResourcesFromCustomLineItem.</param> /// /// <returns>Returns a BatchDisassociateResourcesFromCustomLineItemResult from BillingConductor.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/BatchDisassociateResourcesFromCustomLineItem">REST API Reference for BatchDisassociateResourcesFromCustomLineItem Operation</seealso> BatchDisassociateResourcesFromCustomLineItemResponse EndBatchDisassociateResourcesFromCustomLineItem(IAsyncResult asyncResult); #endregion #region CreateBillingGroup /// <summary> /// Creates a billing group that resembles a consolidated billing family that Amazon /// Web Services charges, based off of the predefined pricing plan computation. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateBillingGroup service method.</param> /// /// <returns>The response from the CreateBillingGroup service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ServiceLimitExceededException"> /// The request would cause a service limit to exceed. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/CreateBillingGroup">REST API Reference for CreateBillingGroup Operation</seealso> CreateBillingGroupResponse CreateBillingGroup(CreateBillingGroupRequest request); /// <summary> /// Initiates the asynchronous execution of the CreateBillingGroup operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateBillingGroup operation on AmazonBillingConductorClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateBillingGroup /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/CreateBillingGroup">REST API Reference for CreateBillingGroup Operation</seealso> IAsyncResult BeginCreateBillingGroup(CreateBillingGroupRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the CreateBillingGroup operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateBillingGroup.</param> /// /// <returns>Returns a CreateBillingGroupResult from BillingConductor.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/CreateBillingGroup">REST API Reference for CreateBillingGroup Operation</seealso> CreateBillingGroupResponse EndCreateBillingGroup(IAsyncResult asyncResult); #endregion #region CreateCustomLineItem /// <summary> /// Creates a custom line item that can be used to create a one-time fixed charge that /// can be applied to a single billing group for the current or previous billing period. /// The one-time fixed charge is either a fee or discount. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateCustomLineItem service method.</param> /// /// <returns>The response from the CreateCustomLineItem service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ServiceLimitExceededException"> /// The request would cause a service limit to exceed. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/CreateCustomLineItem">REST API Reference for CreateCustomLineItem Operation</seealso> CreateCustomLineItemResponse CreateCustomLineItem(CreateCustomLineItemRequest request); /// <summary> /// Initiates the asynchronous execution of the CreateCustomLineItem operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateCustomLineItem operation on AmazonBillingConductorClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateCustomLineItem /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/CreateCustomLineItem">REST API Reference for CreateCustomLineItem Operation</seealso> IAsyncResult BeginCreateCustomLineItem(CreateCustomLineItemRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the CreateCustomLineItem operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateCustomLineItem.</param> /// /// <returns>Returns a CreateCustomLineItemResult from BillingConductor.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/CreateCustomLineItem">REST API Reference for CreateCustomLineItem Operation</seealso> CreateCustomLineItemResponse EndCreateCustomLineItem(IAsyncResult asyncResult); #endregion #region CreatePricingPlan /// <summary> /// Creates a pricing plan that is used for computing Amazon Web Services charges for /// billing groups. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreatePricingPlan service method.</param> /// /// <returns>The response from the CreatePricingPlan service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ServiceLimitExceededException"> /// The request would cause a service limit to exceed. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/CreatePricingPlan">REST API Reference for CreatePricingPlan Operation</seealso> CreatePricingPlanResponse CreatePricingPlan(CreatePricingPlanRequest request); /// <summary> /// Initiates the asynchronous execution of the CreatePricingPlan operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreatePricingPlan operation on AmazonBillingConductorClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreatePricingPlan /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/CreatePricingPlan">REST API Reference for CreatePricingPlan Operation</seealso> IAsyncResult BeginCreatePricingPlan(CreatePricingPlanRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the CreatePricingPlan operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreatePricingPlan.</param> /// /// <returns>Returns a CreatePricingPlanResult from BillingConductor.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/CreatePricingPlan">REST API Reference for CreatePricingPlan Operation</seealso> CreatePricingPlanResponse EndCreatePricingPlan(IAsyncResult asyncResult); #endregion #region CreatePricingRule /// <summary> /// Creates a pricing rule can be associated to a pricing plan, or a set of pricing plans. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreatePricingRule service method.</param> /// /// <returns>The response from the CreatePricingRule service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ServiceLimitExceededException"> /// The request would cause a service limit to exceed. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/CreatePricingRule">REST API Reference for CreatePricingRule Operation</seealso> CreatePricingRuleResponse CreatePricingRule(CreatePricingRuleRequest request); /// <summary> /// Initiates the asynchronous execution of the CreatePricingRule operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreatePricingRule operation on AmazonBillingConductorClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreatePricingRule /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/CreatePricingRule">REST API Reference for CreatePricingRule Operation</seealso> IAsyncResult BeginCreatePricingRule(CreatePricingRuleRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the CreatePricingRule operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreatePricingRule.</param> /// /// <returns>Returns a CreatePricingRuleResult from BillingConductor.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/CreatePricingRule">REST API Reference for CreatePricingRule Operation</seealso> CreatePricingRuleResponse EndCreatePricingRule(IAsyncResult asyncResult); #endregion #region DeleteBillingGroup /// <summary> /// Deletes a billing group. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteBillingGroup service method.</param> /// /// <returns>The response from the DeleteBillingGroup service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/DeleteBillingGroup">REST API Reference for DeleteBillingGroup Operation</seealso> DeleteBillingGroupResponse DeleteBillingGroup(DeleteBillingGroupRequest request); /// <summary> /// Initiates the asynchronous execution of the DeleteBillingGroup operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteBillingGroup operation on AmazonBillingConductorClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteBillingGroup /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/DeleteBillingGroup">REST API Reference for DeleteBillingGroup Operation</seealso> IAsyncResult BeginDeleteBillingGroup(DeleteBillingGroupRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DeleteBillingGroup operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteBillingGroup.</param> /// /// <returns>Returns a DeleteBillingGroupResult from BillingConductor.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/DeleteBillingGroup">REST API Reference for DeleteBillingGroup Operation</seealso> DeleteBillingGroupResponse EndDeleteBillingGroup(IAsyncResult asyncResult); #endregion #region DeleteCustomLineItem /// <summary> /// Deletes the custom line item identified by the given ARN in the current, or previous /// billing period. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteCustomLineItem service method.</param> /// /// <returns>The response from the DeleteCustomLineItem service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/DeleteCustomLineItem">REST API Reference for DeleteCustomLineItem Operation</seealso> DeleteCustomLineItemResponse DeleteCustomLineItem(DeleteCustomLineItemRequest request); /// <summary> /// Initiates the asynchronous execution of the DeleteCustomLineItem operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteCustomLineItem operation on AmazonBillingConductorClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteCustomLineItem /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/DeleteCustomLineItem">REST API Reference for DeleteCustomLineItem Operation</seealso> IAsyncResult BeginDeleteCustomLineItem(DeleteCustomLineItemRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DeleteCustomLineItem operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteCustomLineItem.</param> /// /// <returns>Returns a DeleteCustomLineItemResult from BillingConductor.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/DeleteCustomLineItem">REST API Reference for DeleteCustomLineItem Operation</seealso> DeleteCustomLineItemResponse EndDeleteCustomLineItem(IAsyncResult asyncResult); #endregion #region DeletePricingPlan /// <summary> /// Deletes a pricing plan. The pricing plan must not be associated with any billing groups /// to delete successfully. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeletePricingPlan service method.</param> /// /// <returns>The response from the DeletePricingPlan service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/DeletePricingPlan">REST API Reference for DeletePricingPlan Operation</seealso> DeletePricingPlanResponse DeletePricingPlan(DeletePricingPlanRequest request); /// <summary> /// Initiates the asynchronous execution of the DeletePricingPlan operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeletePricingPlan operation on AmazonBillingConductorClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeletePricingPlan /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/DeletePricingPlan">REST API Reference for DeletePricingPlan Operation</seealso> IAsyncResult BeginDeletePricingPlan(DeletePricingPlanRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DeletePricingPlan operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeletePricingPlan.</param> /// /// <returns>Returns a DeletePricingPlanResult from BillingConductor.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/DeletePricingPlan">REST API Reference for DeletePricingPlan Operation</seealso> DeletePricingPlanResponse EndDeletePricingPlan(IAsyncResult asyncResult); #endregion #region DeletePricingRule /// <summary> /// Deletes the pricing rule that's identified by the input Amazon Resource Name (ARN). /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeletePricingRule service method.</param> /// /// <returns>The response from the DeletePricingRule service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/DeletePricingRule">REST API Reference for DeletePricingRule Operation</seealso> DeletePricingRuleResponse DeletePricingRule(DeletePricingRuleRequest request); /// <summary> /// Initiates the asynchronous execution of the DeletePricingRule operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeletePricingRule operation on AmazonBillingConductorClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeletePricingRule /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/DeletePricingRule">REST API Reference for DeletePricingRule Operation</seealso> IAsyncResult BeginDeletePricingRule(DeletePricingRuleRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DeletePricingRule operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeletePricingRule.</param> /// /// <returns>Returns a DeletePricingRuleResult from BillingConductor.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/DeletePricingRule">REST API Reference for DeletePricingRule Operation</seealso> DeletePricingRuleResponse EndDeletePricingRule(IAsyncResult asyncResult); #endregion #region DisassociateAccounts /// <summary> /// Removes the specified list of account IDs from the given billing group. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DisassociateAccounts service method.</param> /// /// <returns>The response from the DisassociateAccounts service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/DisassociateAccounts">REST API Reference for DisassociateAccounts Operation</seealso> DisassociateAccountsResponse DisassociateAccounts(DisassociateAccountsRequest request); /// <summary> /// Initiates the asynchronous execution of the DisassociateAccounts operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DisassociateAccounts operation on AmazonBillingConductorClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDisassociateAccounts /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/DisassociateAccounts">REST API Reference for DisassociateAccounts Operation</seealso> IAsyncResult BeginDisassociateAccounts(DisassociateAccountsRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DisassociateAccounts operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDisassociateAccounts.</param> /// /// <returns>Returns a DisassociateAccountsResult from BillingConductor.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/DisassociateAccounts">REST API Reference for DisassociateAccounts Operation</seealso> DisassociateAccountsResponse EndDisassociateAccounts(IAsyncResult asyncResult); #endregion #region DisassociatePricingRules /// <summary> /// Disassociates a list of pricing rules from a pricing plan. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DisassociatePricingRules service method.</param> /// /// <returns>The response from the DisassociatePricingRules service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/DisassociatePricingRules">REST API Reference for DisassociatePricingRules Operation</seealso> DisassociatePricingRulesResponse DisassociatePricingRules(DisassociatePricingRulesRequest request); /// <summary> /// Initiates the asynchronous execution of the DisassociatePricingRules operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DisassociatePricingRules operation on AmazonBillingConductorClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDisassociatePricingRules /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/DisassociatePricingRules">REST API Reference for DisassociatePricingRules Operation</seealso> IAsyncResult BeginDisassociatePricingRules(DisassociatePricingRulesRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DisassociatePricingRules operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDisassociatePricingRules.</param> /// /// <returns>Returns a DisassociatePricingRulesResult from BillingConductor.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/DisassociatePricingRules">REST API Reference for DisassociatePricingRules Operation</seealso> DisassociatePricingRulesResponse EndDisassociatePricingRules(IAsyncResult asyncResult); #endregion #region ListAccountAssociations /// <summary> /// This is a paginated call to list linked accounts that are linked to the payer account /// for the specified time period. If no information is provided, the current billing /// period is used. The response will optionally include the billing group that's associated /// with the linked account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListAccountAssociations service method.</param> /// /// <returns>The response from the ListAccountAssociations service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListAccountAssociations">REST API Reference for ListAccountAssociations Operation</seealso> ListAccountAssociationsResponse ListAccountAssociations(ListAccountAssociationsRequest request); /// <summary> /// Initiates the asynchronous execution of the ListAccountAssociations operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListAccountAssociations operation on AmazonBillingConductorClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListAccountAssociations /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListAccountAssociations">REST API Reference for ListAccountAssociations Operation</seealso> IAsyncResult BeginListAccountAssociations(ListAccountAssociationsRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the ListAccountAssociations operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListAccountAssociations.</param> /// /// <returns>Returns a ListAccountAssociationsResult from BillingConductor.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListAccountAssociations">REST API Reference for ListAccountAssociations Operation</seealso> ListAccountAssociationsResponse EndListAccountAssociations(IAsyncResult asyncResult); #endregion #region ListBillingGroupCostReports /// <summary> /// A paginated call to retrieve a summary report of actual Amazon Web Services charges /// and the calculated Amazon Web Services charges based on the associated pricing plan /// of a billing group. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListBillingGroupCostReports service method.</param> /// /// <returns>The response from the ListBillingGroupCostReports service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListBillingGroupCostReports">REST API Reference for ListBillingGroupCostReports Operation</seealso> ListBillingGroupCostReportsResponse ListBillingGroupCostReports(ListBillingGroupCostReportsRequest request); /// <summary> /// Initiates the asynchronous execution of the ListBillingGroupCostReports operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListBillingGroupCostReports operation on AmazonBillingConductorClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListBillingGroupCostReports /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListBillingGroupCostReports">REST API Reference for ListBillingGroupCostReports Operation</seealso> IAsyncResult BeginListBillingGroupCostReports(ListBillingGroupCostReportsRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the ListBillingGroupCostReports operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListBillingGroupCostReports.</param> /// /// <returns>Returns a ListBillingGroupCostReportsResult from BillingConductor.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListBillingGroupCostReports">REST API Reference for ListBillingGroupCostReports Operation</seealso> ListBillingGroupCostReportsResponse EndListBillingGroupCostReports(IAsyncResult asyncResult); #endregion #region ListBillingGroups /// <summary> /// A paginated call to retrieve a list of billing groups for the given billing period. /// If you don't provide a billing group, the current billing period is used. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListBillingGroups service method.</param> /// /// <returns>The response from the ListBillingGroups service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListBillingGroups">REST API Reference for ListBillingGroups Operation</seealso> ListBillingGroupsResponse ListBillingGroups(ListBillingGroupsRequest request); /// <summary> /// Initiates the asynchronous execution of the ListBillingGroups operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListBillingGroups operation on AmazonBillingConductorClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListBillingGroups /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListBillingGroups">REST API Reference for ListBillingGroups Operation</seealso> IAsyncResult BeginListBillingGroups(ListBillingGroupsRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the ListBillingGroups operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListBillingGroups.</param> /// /// <returns>Returns a ListBillingGroupsResult from BillingConductor.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListBillingGroups">REST API Reference for ListBillingGroups Operation</seealso> ListBillingGroupsResponse EndListBillingGroups(IAsyncResult asyncResult); #endregion #region ListCustomLineItems /// <summary> /// A paginated call to get a list of all custom line items (FFLIs) for the given billing /// period. If you don't provide a billing period, the current billing period is used. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListCustomLineItems service method.</param> /// /// <returns>The response from the ListCustomLineItems service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListCustomLineItems">REST API Reference for ListCustomLineItems Operation</seealso> ListCustomLineItemsResponse ListCustomLineItems(ListCustomLineItemsRequest request); /// <summary> /// Initiates the asynchronous execution of the ListCustomLineItems operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListCustomLineItems operation on AmazonBillingConductorClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListCustomLineItems /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListCustomLineItems">REST API Reference for ListCustomLineItems Operation</seealso> IAsyncResult BeginListCustomLineItems(ListCustomLineItemsRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the ListCustomLineItems operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListCustomLineItems.</param> /// /// <returns>Returns a ListCustomLineItemsResult from BillingConductor.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListCustomLineItems">REST API Reference for ListCustomLineItems Operation</seealso> ListCustomLineItemsResponse EndListCustomLineItems(IAsyncResult asyncResult); #endregion #region ListCustomLineItemVersions /// <summary> /// A paginated call to get a list of all custom line item versions. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListCustomLineItemVersions service method.</param> /// /// <returns>The response from the ListCustomLineItemVersions service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListCustomLineItemVersions">REST API Reference for ListCustomLineItemVersions Operation</seealso> ListCustomLineItemVersionsResponse ListCustomLineItemVersions(ListCustomLineItemVersionsRequest request); /// <summary> /// Initiates the asynchronous execution of the ListCustomLineItemVersions operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListCustomLineItemVersions operation on AmazonBillingConductorClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListCustomLineItemVersions /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListCustomLineItemVersions">REST API Reference for ListCustomLineItemVersions Operation</seealso> IAsyncResult BeginListCustomLineItemVersions(ListCustomLineItemVersionsRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the ListCustomLineItemVersions operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListCustomLineItemVersions.</param> /// /// <returns>Returns a ListCustomLineItemVersionsResult from BillingConductor.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListCustomLineItemVersions">REST API Reference for ListCustomLineItemVersions Operation</seealso> ListCustomLineItemVersionsResponse EndListCustomLineItemVersions(IAsyncResult asyncResult); #endregion #region ListPricingPlans /// <summary> /// A paginated call to get pricing plans for the given billing period. If you don't provide /// a billing period, the current billing period is used. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListPricingPlans service method.</param> /// /// <returns>The response from the ListPricingPlans service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListPricingPlans">REST API Reference for ListPricingPlans Operation</seealso> ListPricingPlansResponse ListPricingPlans(ListPricingPlansRequest request); /// <summary> /// Initiates the asynchronous execution of the ListPricingPlans operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListPricingPlans operation on AmazonBillingConductorClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListPricingPlans /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListPricingPlans">REST API Reference for ListPricingPlans Operation</seealso> IAsyncResult BeginListPricingPlans(ListPricingPlansRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the ListPricingPlans operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListPricingPlans.</param> /// /// <returns>Returns a ListPricingPlansResult from BillingConductor.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListPricingPlans">REST API Reference for ListPricingPlans Operation</seealso> ListPricingPlansResponse EndListPricingPlans(IAsyncResult asyncResult); #endregion #region ListPricingPlansAssociatedWithPricingRule /// <summary> /// A list of the pricing plans that are associated with a pricing rule. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListPricingPlansAssociatedWithPricingRule service method.</param> /// /// <returns>The response from the ListPricingPlansAssociatedWithPricingRule service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListPricingPlansAssociatedWithPricingRule">REST API Reference for ListPricingPlansAssociatedWithPricingRule Operation</seealso> ListPricingPlansAssociatedWithPricingRuleResponse ListPricingPlansAssociatedWithPricingRule(ListPricingPlansAssociatedWithPricingRuleRequest request); /// <summary> /// Initiates the asynchronous execution of the ListPricingPlansAssociatedWithPricingRule operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListPricingPlansAssociatedWithPricingRule operation on AmazonBillingConductorClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListPricingPlansAssociatedWithPricingRule /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListPricingPlansAssociatedWithPricingRule">REST API Reference for ListPricingPlansAssociatedWithPricingRule Operation</seealso> IAsyncResult BeginListPricingPlansAssociatedWithPricingRule(ListPricingPlansAssociatedWithPricingRuleRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the ListPricingPlansAssociatedWithPricingRule operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListPricingPlansAssociatedWithPricingRule.</param> /// /// <returns>Returns a ListPricingPlansAssociatedWithPricingRuleResult from BillingConductor.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListPricingPlansAssociatedWithPricingRule">REST API Reference for ListPricingPlansAssociatedWithPricingRule Operation</seealso> ListPricingPlansAssociatedWithPricingRuleResponse EndListPricingPlansAssociatedWithPricingRule(IAsyncResult asyncResult); #endregion #region ListPricingRules /// <summary> /// Describes a pricing rule that can be associated to a pricing plan, or set of pricing /// plans. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListPricingRules service method.</param> /// /// <returns>The response from the ListPricingRules service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListPricingRules">REST API Reference for ListPricingRules Operation</seealso> ListPricingRulesResponse ListPricingRules(ListPricingRulesRequest request); /// <summary> /// Initiates the asynchronous execution of the ListPricingRules operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListPricingRules operation on AmazonBillingConductorClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListPricingRules /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListPricingRules">REST API Reference for ListPricingRules Operation</seealso> IAsyncResult BeginListPricingRules(ListPricingRulesRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the ListPricingRules operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListPricingRules.</param> /// /// <returns>Returns a ListPricingRulesResult from BillingConductor.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListPricingRules">REST API Reference for ListPricingRules Operation</seealso> ListPricingRulesResponse EndListPricingRules(IAsyncResult asyncResult); #endregion #region ListPricingRulesAssociatedToPricingPlan /// <summary> /// Lists the pricing rules that are associated with a pricing plan. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListPricingRulesAssociatedToPricingPlan service method.</param> /// /// <returns>The response from the ListPricingRulesAssociatedToPricingPlan service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListPricingRulesAssociatedToPricingPlan">REST API Reference for ListPricingRulesAssociatedToPricingPlan Operation</seealso> ListPricingRulesAssociatedToPricingPlanResponse ListPricingRulesAssociatedToPricingPlan(ListPricingRulesAssociatedToPricingPlanRequest request); /// <summary> /// Initiates the asynchronous execution of the ListPricingRulesAssociatedToPricingPlan operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListPricingRulesAssociatedToPricingPlan operation on AmazonBillingConductorClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListPricingRulesAssociatedToPricingPlan /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListPricingRulesAssociatedToPricingPlan">REST API Reference for ListPricingRulesAssociatedToPricingPlan Operation</seealso> IAsyncResult BeginListPricingRulesAssociatedToPricingPlan(ListPricingRulesAssociatedToPricingPlanRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the ListPricingRulesAssociatedToPricingPlan operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListPricingRulesAssociatedToPricingPlan.</param> /// /// <returns>Returns a ListPricingRulesAssociatedToPricingPlanResult from BillingConductor.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListPricingRulesAssociatedToPricingPlan">REST API Reference for ListPricingRulesAssociatedToPricingPlan Operation</seealso> ListPricingRulesAssociatedToPricingPlanResponse EndListPricingRulesAssociatedToPricingPlan(IAsyncResult asyncResult); #endregion #region ListResourcesAssociatedToCustomLineItem /// <summary> /// List the resources that are associated to a custom line item. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListResourcesAssociatedToCustomLineItem service method.</param> /// /// <returns>The response from the ListResourcesAssociatedToCustomLineItem service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListResourcesAssociatedToCustomLineItem">REST API Reference for ListResourcesAssociatedToCustomLineItem Operation</seealso> ListResourcesAssociatedToCustomLineItemResponse ListResourcesAssociatedToCustomLineItem(ListResourcesAssociatedToCustomLineItemRequest request); /// <summary> /// Initiates the asynchronous execution of the ListResourcesAssociatedToCustomLineItem operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListResourcesAssociatedToCustomLineItem operation on AmazonBillingConductorClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListResourcesAssociatedToCustomLineItem /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListResourcesAssociatedToCustomLineItem">REST API Reference for ListResourcesAssociatedToCustomLineItem Operation</seealso> IAsyncResult BeginListResourcesAssociatedToCustomLineItem(ListResourcesAssociatedToCustomLineItemRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the ListResourcesAssociatedToCustomLineItem operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListResourcesAssociatedToCustomLineItem.</param> /// /// <returns>Returns a ListResourcesAssociatedToCustomLineItemResult from BillingConductor.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListResourcesAssociatedToCustomLineItem">REST API Reference for ListResourcesAssociatedToCustomLineItem Operation</seealso> ListResourcesAssociatedToCustomLineItemResponse EndListResourcesAssociatedToCustomLineItem(IAsyncResult asyncResult); #endregion #region ListTagsForResource /// <summary> /// A list the tags for a resource. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListTagsForResource service method.</param> /// /// <returns>The response from the ListTagsForResource service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso> ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request); /// <summary> /// Initiates the asynchronous execution of the ListTagsForResource operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListTagsForResource operation on AmazonBillingConductorClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListTagsForResource /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso> IAsyncResult BeginListTagsForResource(ListTagsForResourceRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the ListTagsForResource operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListTagsForResource.</param> /// /// <returns>Returns a ListTagsForResourceResult from BillingConductor.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso> ListTagsForResourceResponse EndListTagsForResource(IAsyncResult asyncResult); #endregion #region TagResource /// <summary> /// Associates the specified tags to a resource with the specified <code>resourceArn</code>. /// If existing tags on a resource are not specified in the request parameters, they are /// not changed. /// </summary> /// <param name="request">Container for the necessary parameters to execute the TagResource service method.</param> /// /// <returns>The response from the TagResource service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/TagResource">REST API Reference for TagResource Operation</seealso> TagResourceResponse TagResource(TagResourceRequest request); /// <summary> /// Initiates the asynchronous execution of the TagResource operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the TagResource operation on AmazonBillingConductorClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndTagResource /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/TagResource">REST API Reference for TagResource Operation</seealso> IAsyncResult BeginTagResource(TagResourceRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the TagResource operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginTagResource.</param> /// /// <returns>Returns a TagResourceResult from BillingConductor.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/TagResource">REST API Reference for TagResource Operation</seealso> TagResourceResponse EndTagResource(IAsyncResult asyncResult); #endregion #region UntagResource /// <summary> /// Deletes specified tags from a resource. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UntagResource service method.</param> /// /// <returns>The response from the UntagResource service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/UntagResource">REST API Reference for UntagResource Operation</seealso> UntagResourceResponse UntagResource(UntagResourceRequest request); /// <summary> /// Initiates the asynchronous execution of the UntagResource operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UntagResource operation on AmazonBillingConductorClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUntagResource /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/UntagResource">REST API Reference for UntagResource Operation</seealso> IAsyncResult BeginUntagResource(UntagResourceRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the UntagResource operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUntagResource.</param> /// /// <returns>Returns a UntagResourceResult from BillingConductor.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/UntagResource">REST API Reference for UntagResource Operation</seealso> UntagResourceResponse EndUntagResource(IAsyncResult asyncResult); #endregion #region UpdateBillingGroup /// <summary> /// This updates an existing billing group. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateBillingGroup service method.</param> /// /// <returns>The response from the UpdateBillingGroup service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/UpdateBillingGroup">REST API Reference for UpdateBillingGroup Operation</seealso> UpdateBillingGroupResponse UpdateBillingGroup(UpdateBillingGroupRequest request); /// <summary> /// Initiates the asynchronous execution of the UpdateBillingGroup operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateBillingGroup operation on AmazonBillingConductorClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateBillingGroup /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/UpdateBillingGroup">REST API Reference for UpdateBillingGroup Operation</seealso> IAsyncResult BeginUpdateBillingGroup(UpdateBillingGroupRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the UpdateBillingGroup operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateBillingGroup.</param> /// /// <returns>Returns a UpdateBillingGroupResult from BillingConductor.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/UpdateBillingGroup">REST API Reference for UpdateBillingGroup Operation</seealso> UpdateBillingGroupResponse EndUpdateBillingGroup(IAsyncResult asyncResult); #endregion #region UpdateCustomLineItem /// <summary> /// Update an existing custom line item in the current or previous billing period. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateCustomLineItem service method.</param> /// /// <returns>The response from the UpdateCustomLineItem service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/UpdateCustomLineItem">REST API Reference for UpdateCustomLineItem Operation</seealso> UpdateCustomLineItemResponse UpdateCustomLineItem(UpdateCustomLineItemRequest request); /// <summary> /// Initiates the asynchronous execution of the UpdateCustomLineItem operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateCustomLineItem operation on AmazonBillingConductorClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateCustomLineItem /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/UpdateCustomLineItem">REST API Reference for UpdateCustomLineItem Operation</seealso> IAsyncResult BeginUpdateCustomLineItem(UpdateCustomLineItemRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the UpdateCustomLineItem operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateCustomLineItem.</param> /// /// <returns>Returns a UpdateCustomLineItemResult from BillingConductor.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/UpdateCustomLineItem">REST API Reference for UpdateCustomLineItem Operation</seealso> UpdateCustomLineItemResponse EndUpdateCustomLineItem(IAsyncResult asyncResult); #endregion #region UpdatePricingPlan /// <summary> /// This updates an existing pricing plan. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdatePricingPlan service method.</param> /// /// <returns>The response from the UpdatePricingPlan service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/UpdatePricingPlan">REST API Reference for UpdatePricingPlan Operation</seealso> UpdatePricingPlanResponse UpdatePricingPlan(UpdatePricingPlanRequest request); /// <summary> /// Initiates the asynchronous execution of the UpdatePricingPlan operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdatePricingPlan operation on AmazonBillingConductorClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdatePricingPlan /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/UpdatePricingPlan">REST API Reference for UpdatePricingPlan Operation</seealso> IAsyncResult BeginUpdatePricingPlan(UpdatePricingPlanRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the UpdatePricingPlan operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdatePricingPlan.</param> /// /// <returns>Returns a UpdatePricingPlanResult from BillingConductor.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/UpdatePricingPlan">REST API Reference for UpdatePricingPlan Operation</seealso> UpdatePricingPlanResponse EndUpdatePricingPlan(IAsyncResult asyncResult); #endregion #region UpdatePricingRule /// <summary> /// Updates an existing pricing rule. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdatePricingRule service method.</param> /// /// <returns>The response from the UpdatePricingRule service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/UpdatePricingRule">REST API Reference for UpdatePricingRule Operation</seealso> UpdatePricingRuleResponse UpdatePricingRule(UpdatePricingRuleRequest request); /// <summary> /// Initiates the asynchronous execution of the UpdatePricingRule operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdatePricingRule operation on AmazonBillingConductorClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdatePricingRule /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/UpdatePricingRule">REST API Reference for UpdatePricingRule Operation</seealso> IAsyncResult BeginUpdatePricingRule(UpdatePricingRuleRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the UpdatePricingRule operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdatePricingRule.</param> /// /// <returns>Returns a UpdatePricingRuleResult from BillingConductor.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/UpdatePricingRule">REST API Reference for UpdatePricingRule Operation</seealso> UpdatePricingRuleResponse EndUpdatePricingRule(IAsyncResult asyncResult); #endregion } }
1,833
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.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.BillingConductor.Model; using Amazon.BillingConductor.Model.Internal.MarshallTransformations; using Amazon.BillingConductor.Internal; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Auth; using Amazon.Runtime.Internal.Transform; namespace Amazon.BillingConductor { /// <summary> /// Implementation for accessing BillingConductor /// /// Amazon Web Services Billing Conductor is a fully managed service that you can use /// to customize a <a href="https://docs.aws.amazon.com/billingconductor/latest/userguide/understanding-eb.html#eb-other-definitions">pro /// forma</a> version of your billing data each month, to accurately show or chargeback /// your end customers. Amazon Web Services Billing Conductor doesn't change the way you're /// billed by Amazon Web Services each month by design. Instead, it provides you with /// a mechanism to configure, generate, and display rates to certain customers over a /// given billing period. You can also analyze the difference between the rates you apply /// to your accounting groupings relative to your actual rates from Amazon Web Services. /// As a result of your Amazon Web Services Billing Conductor configuration, the payer /// account can also see the custom rate applied on the billing details page of the <a /// href="https://console.aws.amazon.com/billing">Amazon Web Services Billing console</a>, /// or configure a cost and usage report per billing group. /// /// /// <para> /// This documentation shows how you can configure Amazon Web Services Billing Conductor /// using its API. For more information about using the <a href="https://console.aws.amazon.com/billingconductor/">Amazon /// Web Services Billing Conductor</a> user interface, see the <a href="https://docs.aws.amazon.com/billingconductor/latest/userguide/what-is-billingconductor.html"> /// Amazon Web Services Billing Conductor User Guide</a>. /// </para> /// </summary> public partial class AmazonBillingConductorClient : AmazonServiceClient, IAmazonBillingConductor { private static IServiceMetadata serviceMetadata = new AmazonBillingConductorMetadata(); private IBillingConductorPaginatorFactory _paginators; /// <summary> /// Paginators for the service /// </summary> public IBillingConductorPaginatorFactory Paginators { get { if (this._paginators == null) { this._paginators = new BillingConductorPaginatorFactory(this); } return this._paginators; } } #region Constructors /// <summary> /// Constructs AmazonBillingConductorClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// <code> /// &lt;?xml version="1.0" encoding="utf-8" ?&gt; /// &lt;configuration&gt; /// &lt;appSettings&gt; /// &lt;add key="AWSProfileName" value="AWS Default"/&gt; /// &lt;/appSettings&gt; /// &lt;/configuration&gt; /// </code> /// /// </summary> public AmazonBillingConductorClient() : base(FallbackCredentialsFactory.GetCredentials(), new AmazonBillingConductorConfig()) { } /// <summary> /// Constructs AmazonBillingConductorClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// <code> /// &lt;?xml version="1.0" encoding="utf-8" ?&gt; /// &lt;configuration&gt; /// &lt;appSettings&gt; /// &lt;add key="AWSProfileName" value="AWS Default"/&gt; /// &lt;/appSettings&gt; /// &lt;/configuration&gt; /// </code> /// /// </summary> /// <param name="region">The region to connect.</param> public AmazonBillingConductorClient(RegionEndpoint region) : base(FallbackCredentialsFactory.GetCredentials(), new AmazonBillingConductorConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonBillingConductorClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// <code> /// &lt;?xml version="1.0" encoding="utf-8" ?&gt; /// &lt;configuration&gt; /// &lt;appSettings&gt; /// &lt;add key="AWSProfileName" value="AWS Default"/&gt; /// &lt;/appSettings&gt; /// &lt;/configuration&gt; /// </code> /// /// </summary> /// <param name="config">The AmazonBillingConductorClient Configuration Object</param> public AmazonBillingConductorClient(AmazonBillingConductorConfig config) : base(FallbackCredentialsFactory.GetCredentials(), config) { } /// <summary> /// Constructs AmazonBillingConductorClient with AWS Credentials /// </summary> /// <param name="credentials">AWS Credentials</param> public AmazonBillingConductorClient(AWSCredentials credentials) : this(credentials, new AmazonBillingConductorConfig()) { } /// <summary> /// Constructs AmazonBillingConductorClient with AWS Credentials /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="region">The region to connect.</param> public AmazonBillingConductorClient(AWSCredentials credentials, RegionEndpoint region) : this(credentials, new AmazonBillingConductorConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonBillingConductorClient with AWS Credentials and an /// AmazonBillingConductorClient Configuration object. /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="clientConfig">The AmazonBillingConductorClient Configuration Object</param> public AmazonBillingConductorClient(AWSCredentials credentials, AmazonBillingConductorConfig clientConfig) : base(credentials, clientConfig) { } /// <summary> /// Constructs AmazonBillingConductorClient with AWS Access Key ID and AWS Secret Key /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> public AmazonBillingConductorClient(string awsAccessKeyId, string awsSecretAccessKey) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonBillingConductorConfig()) { } /// <summary> /// Constructs AmazonBillingConductorClient with AWS Access Key ID and AWS Secret Key /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="region">The region to connect.</param> public AmazonBillingConductorClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonBillingConductorConfig() {RegionEndpoint=region}) { } /// <summary> /// Constructs AmazonBillingConductorClient with AWS Access Key ID, AWS Secret Key and an /// AmazonBillingConductorClient Configuration object. /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="clientConfig">The AmazonBillingConductorClient Configuration Object</param> public AmazonBillingConductorClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonBillingConductorConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) { } /// <summary> /// Constructs AmazonBillingConductorClient with AWS Access Key ID and AWS Secret Key /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="awsSessionToken">AWS Session Token</param> public AmazonBillingConductorClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonBillingConductorConfig()) { } /// <summary> /// Constructs AmazonBillingConductorClient with AWS Access Key ID and AWS Secret Key /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="awsSessionToken">AWS Session Token</param> /// <param name="region">The region to connect.</param> public AmazonBillingConductorClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonBillingConductorConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonBillingConductorClient with AWS Access Key ID, AWS Secret Key and an /// AmazonBillingConductorClient Configuration object. /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="awsSessionToken">AWS Session Token</param> /// <param name="clientConfig">The AmazonBillingConductorClient Configuration Object</param> public AmazonBillingConductorClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonBillingConductorConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig) { } #endregion #region Overrides /// <summary> /// Creates the signer for the service. /// </summary> protected override AbstractAWSSigner CreateSigner() { return new AWS4Signer(); } /// <summary> /// Customize the pipeline /// </summary> /// <param name="pipeline"></param> protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline) { pipeline.RemoveHandler<Amazon.Runtime.Internal.EndpointResolver>(); pipeline.AddHandlerAfter<Amazon.Runtime.Internal.Marshaller>(new AmazonBillingConductorEndpointResolver()); } /// <summary> /// Capture metadata for the service. /// </summary> protected override IServiceMetadata ServiceMetadata { get { return serviceMetadata; } } #endregion #region Dispose /// <summary> /// Disposes the service client. /// </summary> protected override void Dispose(bool disposing) { base.Dispose(disposing); } #endregion #region AssociateAccounts /// <summary> /// Connects an array of account IDs in a consolidated billing family to a predefined /// billing group. The account IDs must be a part of the consolidated billing family during /// the current month, and not already associated with another billing group. The maximum /// number of accounts that can be associated in one call is 30. /// </summary> /// <param name="request">Container for the necessary parameters to execute the AssociateAccounts service method.</param> /// /// <returns>The response from the AssociateAccounts service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ServiceLimitExceededException"> /// The request would cause a service limit to exceed. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/AssociateAccounts">REST API Reference for AssociateAccounts Operation</seealso> public virtual AssociateAccountsResponse AssociateAccounts(AssociateAccountsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = AssociateAccountsRequestMarshaller.Instance; options.ResponseUnmarshaller = AssociateAccountsResponseUnmarshaller.Instance; return Invoke<AssociateAccountsResponse>(request, options); } /// <summary> /// Connects an array of account IDs in a consolidated billing family to a predefined /// billing group. The account IDs must be a part of the consolidated billing family during /// the current month, and not already associated with another billing group. The maximum /// number of accounts that can be associated in one call is 30. /// </summary> /// <param name="request">Container for the necessary parameters to execute the AssociateAccounts service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the AssociateAccounts service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ServiceLimitExceededException"> /// The request would cause a service limit to exceed. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/AssociateAccounts">REST API Reference for AssociateAccounts Operation</seealso> public virtual Task<AssociateAccountsResponse> AssociateAccountsAsync(AssociateAccountsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = AssociateAccountsRequestMarshaller.Instance; options.ResponseUnmarshaller = AssociateAccountsResponseUnmarshaller.Instance; return InvokeAsync<AssociateAccountsResponse>(request, options, cancellationToken); } #endregion #region AssociatePricingRules /// <summary> /// Connects an array of <code>PricingRuleArns</code> to a defined <code>PricingPlan</code>. /// The maximum number <code>PricingRuleArn</code> that can be associated in one call /// is 30. /// </summary> /// <param name="request">Container for the necessary parameters to execute the AssociatePricingRules service method.</param> /// /// <returns>The response from the AssociatePricingRules service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ServiceLimitExceededException"> /// The request would cause a service limit to exceed. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/AssociatePricingRules">REST API Reference for AssociatePricingRules Operation</seealso> public virtual AssociatePricingRulesResponse AssociatePricingRules(AssociatePricingRulesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = AssociatePricingRulesRequestMarshaller.Instance; options.ResponseUnmarshaller = AssociatePricingRulesResponseUnmarshaller.Instance; return Invoke<AssociatePricingRulesResponse>(request, options); } /// <summary> /// Connects an array of <code>PricingRuleArns</code> to a defined <code>PricingPlan</code>. /// The maximum number <code>PricingRuleArn</code> that can be associated in one call /// is 30. /// </summary> /// <param name="request">Container for the necessary parameters to execute the AssociatePricingRules service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the AssociatePricingRules service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ServiceLimitExceededException"> /// The request would cause a service limit to exceed. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/AssociatePricingRules">REST API Reference for AssociatePricingRules Operation</seealso> public virtual Task<AssociatePricingRulesResponse> AssociatePricingRulesAsync(AssociatePricingRulesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = AssociatePricingRulesRequestMarshaller.Instance; options.ResponseUnmarshaller = AssociatePricingRulesResponseUnmarshaller.Instance; return InvokeAsync<AssociatePricingRulesResponse>(request, options, cancellationToken); } #endregion #region BatchAssociateResourcesToCustomLineItem /// <summary> /// Associates a batch of resources to a percentage custom line item. /// </summary> /// <param name="request">Container for the necessary parameters to execute the BatchAssociateResourcesToCustomLineItem service method.</param> /// /// <returns>The response from the BatchAssociateResourcesToCustomLineItem service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ServiceLimitExceededException"> /// The request would cause a service limit to exceed. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/BatchAssociateResourcesToCustomLineItem">REST API Reference for BatchAssociateResourcesToCustomLineItem Operation</seealso> public virtual BatchAssociateResourcesToCustomLineItemResponse BatchAssociateResourcesToCustomLineItem(BatchAssociateResourcesToCustomLineItemRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = BatchAssociateResourcesToCustomLineItemRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchAssociateResourcesToCustomLineItemResponseUnmarshaller.Instance; return Invoke<BatchAssociateResourcesToCustomLineItemResponse>(request, options); } /// <summary> /// Associates a batch of resources to a percentage custom line item. /// </summary> /// <param name="request">Container for the necessary parameters to execute the BatchAssociateResourcesToCustomLineItem service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the BatchAssociateResourcesToCustomLineItem service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ServiceLimitExceededException"> /// The request would cause a service limit to exceed. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/BatchAssociateResourcesToCustomLineItem">REST API Reference for BatchAssociateResourcesToCustomLineItem Operation</seealso> public virtual Task<BatchAssociateResourcesToCustomLineItemResponse> BatchAssociateResourcesToCustomLineItemAsync(BatchAssociateResourcesToCustomLineItemRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = BatchAssociateResourcesToCustomLineItemRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchAssociateResourcesToCustomLineItemResponseUnmarshaller.Instance; return InvokeAsync<BatchAssociateResourcesToCustomLineItemResponse>(request, options, cancellationToken); } #endregion #region BatchDisassociateResourcesFromCustomLineItem /// <summary> /// Disassociates a batch of resources from a percentage custom line item. /// </summary> /// <param name="request">Container for the necessary parameters to execute the BatchDisassociateResourcesFromCustomLineItem service method.</param> /// /// <returns>The response from the BatchDisassociateResourcesFromCustomLineItem service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/BatchDisassociateResourcesFromCustomLineItem">REST API Reference for BatchDisassociateResourcesFromCustomLineItem Operation</seealso> public virtual BatchDisassociateResourcesFromCustomLineItemResponse BatchDisassociateResourcesFromCustomLineItem(BatchDisassociateResourcesFromCustomLineItemRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = BatchDisassociateResourcesFromCustomLineItemRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchDisassociateResourcesFromCustomLineItemResponseUnmarshaller.Instance; return Invoke<BatchDisassociateResourcesFromCustomLineItemResponse>(request, options); } /// <summary> /// Disassociates a batch of resources from a percentage custom line item. /// </summary> /// <param name="request">Container for the necessary parameters to execute the BatchDisassociateResourcesFromCustomLineItem service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the BatchDisassociateResourcesFromCustomLineItem service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/BatchDisassociateResourcesFromCustomLineItem">REST API Reference for BatchDisassociateResourcesFromCustomLineItem Operation</seealso> public virtual Task<BatchDisassociateResourcesFromCustomLineItemResponse> BatchDisassociateResourcesFromCustomLineItemAsync(BatchDisassociateResourcesFromCustomLineItemRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = BatchDisassociateResourcesFromCustomLineItemRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchDisassociateResourcesFromCustomLineItemResponseUnmarshaller.Instance; return InvokeAsync<BatchDisassociateResourcesFromCustomLineItemResponse>(request, options, cancellationToken); } #endregion #region CreateBillingGroup /// <summary> /// Creates a billing group that resembles a consolidated billing family that Amazon /// Web Services charges, based off of the predefined pricing plan computation. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateBillingGroup service method.</param> /// /// <returns>The response from the CreateBillingGroup service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ServiceLimitExceededException"> /// The request would cause a service limit to exceed. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/CreateBillingGroup">REST API Reference for CreateBillingGroup Operation</seealso> public virtual CreateBillingGroupResponse CreateBillingGroup(CreateBillingGroupRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateBillingGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateBillingGroupResponseUnmarshaller.Instance; return Invoke<CreateBillingGroupResponse>(request, options); } /// <summary> /// Creates a billing group that resembles a consolidated billing family that Amazon /// Web Services charges, based off of the predefined pricing plan computation. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateBillingGroup service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreateBillingGroup service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ServiceLimitExceededException"> /// The request would cause a service limit to exceed. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/CreateBillingGroup">REST API Reference for CreateBillingGroup Operation</seealso> public virtual Task<CreateBillingGroupResponse> CreateBillingGroupAsync(CreateBillingGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateBillingGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateBillingGroupResponseUnmarshaller.Instance; return InvokeAsync<CreateBillingGroupResponse>(request, options, cancellationToken); } #endregion #region CreateCustomLineItem /// <summary> /// Creates a custom line item that can be used to create a one-time fixed charge that /// can be applied to a single billing group for the current or previous billing period. /// The one-time fixed charge is either a fee or discount. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateCustomLineItem service method.</param> /// /// <returns>The response from the CreateCustomLineItem service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ServiceLimitExceededException"> /// The request would cause a service limit to exceed. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/CreateCustomLineItem">REST API Reference for CreateCustomLineItem Operation</seealso> public virtual CreateCustomLineItemResponse CreateCustomLineItem(CreateCustomLineItemRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateCustomLineItemRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateCustomLineItemResponseUnmarshaller.Instance; return Invoke<CreateCustomLineItemResponse>(request, options); } /// <summary> /// Creates a custom line item that can be used to create a one-time fixed charge that /// can be applied to a single billing group for the current or previous billing period. /// The one-time fixed charge is either a fee or discount. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateCustomLineItem service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreateCustomLineItem service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ServiceLimitExceededException"> /// The request would cause a service limit to exceed. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/CreateCustomLineItem">REST API Reference for CreateCustomLineItem Operation</seealso> public virtual Task<CreateCustomLineItemResponse> CreateCustomLineItemAsync(CreateCustomLineItemRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateCustomLineItemRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateCustomLineItemResponseUnmarshaller.Instance; return InvokeAsync<CreateCustomLineItemResponse>(request, options, cancellationToken); } #endregion #region CreatePricingPlan /// <summary> /// Creates a pricing plan that is used for computing Amazon Web Services charges for /// billing groups. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreatePricingPlan service method.</param> /// /// <returns>The response from the CreatePricingPlan service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ServiceLimitExceededException"> /// The request would cause a service limit to exceed. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/CreatePricingPlan">REST API Reference for CreatePricingPlan Operation</seealso> public virtual CreatePricingPlanResponse CreatePricingPlan(CreatePricingPlanRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreatePricingPlanRequestMarshaller.Instance; options.ResponseUnmarshaller = CreatePricingPlanResponseUnmarshaller.Instance; return Invoke<CreatePricingPlanResponse>(request, options); } /// <summary> /// Creates a pricing plan that is used for computing Amazon Web Services charges for /// billing groups. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreatePricingPlan service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreatePricingPlan service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ServiceLimitExceededException"> /// The request would cause a service limit to exceed. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/CreatePricingPlan">REST API Reference for CreatePricingPlan Operation</seealso> public virtual Task<CreatePricingPlanResponse> CreatePricingPlanAsync(CreatePricingPlanRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreatePricingPlanRequestMarshaller.Instance; options.ResponseUnmarshaller = CreatePricingPlanResponseUnmarshaller.Instance; return InvokeAsync<CreatePricingPlanResponse>(request, options, cancellationToken); } #endregion #region CreatePricingRule /// <summary> /// Creates a pricing rule can be associated to a pricing plan, or a set of pricing plans. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreatePricingRule service method.</param> /// /// <returns>The response from the CreatePricingRule service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ServiceLimitExceededException"> /// The request would cause a service limit to exceed. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/CreatePricingRule">REST API Reference for CreatePricingRule Operation</seealso> public virtual CreatePricingRuleResponse CreatePricingRule(CreatePricingRuleRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreatePricingRuleRequestMarshaller.Instance; options.ResponseUnmarshaller = CreatePricingRuleResponseUnmarshaller.Instance; return Invoke<CreatePricingRuleResponse>(request, options); } /// <summary> /// Creates a pricing rule can be associated to a pricing plan, or a set of pricing plans. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreatePricingRule service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreatePricingRule service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ServiceLimitExceededException"> /// The request would cause a service limit to exceed. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/CreatePricingRule">REST API Reference for CreatePricingRule Operation</seealso> public virtual Task<CreatePricingRuleResponse> CreatePricingRuleAsync(CreatePricingRuleRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreatePricingRuleRequestMarshaller.Instance; options.ResponseUnmarshaller = CreatePricingRuleResponseUnmarshaller.Instance; return InvokeAsync<CreatePricingRuleResponse>(request, options, cancellationToken); } #endregion #region DeleteBillingGroup /// <summary> /// Deletes a billing group. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteBillingGroup service method.</param> /// /// <returns>The response from the DeleteBillingGroup service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/DeleteBillingGroup">REST API Reference for DeleteBillingGroup Operation</seealso> public virtual DeleteBillingGroupResponse DeleteBillingGroup(DeleteBillingGroupRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteBillingGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteBillingGroupResponseUnmarshaller.Instance; return Invoke<DeleteBillingGroupResponse>(request, options); } /// <summary> /// Deletes a billing group. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteBillingGroup service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteBillingGroup service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/DeleteBillingGroup">REST API Reference for DeleteBillingGroup Operation</seealso> public virtual Task<DeleteBillingGroupResponse> DeleteBillingGroupAsync(DeleteBillingGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteBillingGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteBillingGroupResponseUnmarshaller.Instance; return InvokeAsync<DeleteBillingGroupResponse>(request, options, cancellationToken); } #endregion #region DeleteCustomLineItem /// <summary> /// Deletes the custom line item identified by the given ARN in the current, or previous /// billing period. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteCustomLineItem service method.</param> /// /// <returns>The response from the DeleteCustomLineItem service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/DeleteCustomLineItem">REST API Reference for DeleteCustomLineItem Operation</seealso> public virtual DeleteCustomLineItemResponse DeleteCustomLineItem(DeleteCustomLineItemRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteCustomLineItemRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteCustomLineItemResponseUnmarshaller.Instance; return Invoke<DeleteCustomLineItemResponse>(request, options); } /// <summary> /// Deletes the custom line item identified by the given ARN in the current, or previous /// billing period. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteCustomLineItem service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteCustomLineItem service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/DeleteCustomLineItem">REST API Reference for DeleteCustomLineItem Operation</seealso> public virtual Task<DeleteCustomLineItemResponse> DeleteCustomLineItemAsync(DeleteCustomLineItemRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteCustomLineItemRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteCustomLineItemResponseUnmarshaller.Instance; return InvokeAsync<DeleteCustomLineItemResponse>(request, options, cancellationToken); } #endregion #region DeletePricingPlan /// <summary> /// Deletes a pricing plan. The pricing plan must not be associated with any billing groups /// to delete successfully. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeletePricingPlan service method.</param> /// /// <returns>The response from the DeletePricingPlan service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/DeletePricingPlan">REST API Reference for DeletePricingPlan Operation</seealso> public virtual DeletePricingPlanResponse DeletePricingPlan(DeletePricingPlanRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeletePricingPlanRequestMarshaller.Instance; options.ResponseUnmarshaller = DeletePricingPlanResponseUnmarshaller.Instance; return Invoke<DeletePricingPlanResponse>(request, options); } /// <summary> /// Deletes a pricing plan. The pricing plan must not be associated with any billing groups /// to delete successfully. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeletePricingPlan service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeletePricingPlan service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/DeletePricingPlan">REST API Reference for DeletePricingPlan Operation</seealso> public virtual Task<DeletePricingPlanResponse> DeletePricingPlanAsync(DeletePricingPlanRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeletePricingPlanRequestMarshaller.Instance; options.ResponseUnmarshaller = DeletePricingPlanResponseUnmarshaller.Instance; return InvokeAsync<DeletePricingPlanResponse>(request, options, cancellationToken); } #endregion #region DeletePricingRule /// <summary> /// Deletes the pricing rule that's identified by the input Amazon Resource Name (ARN). /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeletePricingRule service method.</param> /// /// <returns>The response from the DeletePricingRule service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/DeletePricingRule">REST API Reference for DeletePricingRule Operation</seealso> public virtual DeletePricingRuleResponse DeletePricingRule(DeletePricingRuleRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeletePricingRuleRequestMarshaller.Instance; options.ResponseUnmarshaller = DeletePricingRuleResponseUnmarshaller.Instance; return Invoke<DeletePricingRuleResponse>(request, options); } /// <summary> /// Deletes the pricing rule that's identified by the input Amazon Resource Name (ARN). /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeletePricingRule service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeletePricingRule service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/DeletePricingRule">REST API Reference for DeletePricingRule Operation</seealso> public virtual Task<DeletePricingRuleResponse> DeletePricingRuleAsync(DeletePricingRuleRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeletePricingRuleRequestMarshaller.Instance; options.ResponseUnmarshaller = DeletePricingRuleResponseUnmarshaller.Instance; return InvokeAsync<DeletePricingRuleResponse>(request, options, cancellationToken); } #endregion #region DisassociateAccounts /// <summary> /// Removes the specified list of account IDs from the given billing group. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DisassociateAccounts service method.</param> /// /// <returns>The response from the DisassociateAccounts service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/DisassociateAccounts">REST API Reference for DisassociateAccounts Operation</seealso> public virtual DisassociateAccountsResponse DisassociateAccounts(DisassociateAccountsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DisassociateAccountsRequestMarshaller.Instance; options.ResponseUnmarshaller = DisassociateAccountsResponseUnmarshaller.Instance; return Invoke<DisassociateAccountsResponse>(request, options); } /// <summary> /// Removes the specified list of account IDs from the given billing group. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DisassociateAccounts service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DisassociateAccounts service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/DisassociateAccounts">REST API Reference for DisassociateAccounts Operation</seealso> public virtual Task<DisassociateAccountsResponse> DisassociateAccountsAsync(DisassociateAccountsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DisassociateAccountsRequestMarshaller.Instance; options.ResponseUnmarshaller = DisassociateAccountsResponseUnmarshaller.Instance; return InvokeAsync<DisassociateAccountsResponse>(request, options, cancellationToken); } #endregion #region DisassociatePricingRules /// <summary> /// Disassociates a list of pricing rules from a pricing plan. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DisassociatePricingRules service method.</param> /// /// <returns>The response from the DisassociatePricingRules service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/DisassociatePricingRules">REST API Reference for DisassociatePricingRules Operation</seealso> public virtual DisassociatePricingRulesResponse DisassociatePricingRules(DisassociatePricingRulesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DisassociatePricingRulesRequestMarshaller.Instance; options.ResponseUnmarshaller = DisassociatePricingRulesResponseUnmarshaller.Instance; return Invoke<DisassociatePricingRulesResponse>(request, options); } /// <summary> /// Disassociates a list of pricing rules from a pricing plan. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DisassociatePricingRules service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DisassociatePricingRules service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/DisassociatePricingRules">REST API Reference for DisassociatePricingRules Operation</seealso> public virtual Task<DisassociatePricingRulesResponse> DisassociatePricingRulesAsync(DisassociatePricingRulesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DisassociatePricingRulesRequestMarshaller.Instance; options.ResponseUnmarshaller = DisassociatePricingRulesResponseUnmarshaller.Instance; return InvokeAsync<DisassociatePricingRulesResponse>(request, options, cancellationToken); } #endregion #region ListAccountAssociations /// <summary> /// This is a paginated call to list linked accounts that are linked to the payer account /// for the specified time period. If no information is provided, the current billing /// period is used. The response will optionally include the billing group that's associated /// with the linked account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListAccountAssociations service method.</param> /// /// <returns>The response from the ListAccountAssociations service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListAccountAssociations">REST API Reference for ListAccountAssociations Operation</seealso> public virtual ListAccountAssociationsResponse ListAccountAssociations(ListAccountAssociationsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListAccountAssociationsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListAccountAssociationsResponseUnmarshaller.Instance; return Invoke<ListAccountAssociationsResponse>(request, options); } /// <summary> /// This is a paginated call to list linked accounts that are linked to the payer account /// for the specified time period. If no information is provided, the current billing /// period is used. The response will optionally include the billing group that's associated /// with the linked account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListAccountAssociations service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListAccountAssociations service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListAccountAssociations">REST API Reference for ListAccountAssociations Operation</seealso> public virtual Task<ListAccountAssociationsResponse> ListAccountAssociationsAsync(ListAccountAssociationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListAccountAssociationsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListAccountAssociationsResponseUnmarshaller.Instance; return InvokeAsync<ListAccountAssociationsResponse>(request, options, cancellationToken); } #endregion #region ListBillingGroupCostReports /// <summary> /// A paginated call to retrieve a summary report of actual Amazon Web Services charges /// and the calculated Amazon Web Services charges based on the associated pricing plan /// of a billing group. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListBillingGroupCostReports service method.</param> /// /// <returns>The response from the ListBillingGroupCostReports service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListBillingGroupCostReports">REST API Reference for ListBillingGroupCostReports Operation</seealso> public virtual ListBillingGroupCostReportsResponse ListBillingGroupCostReports(ListBillingGroupCostReportsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListBillingGroupCostReportsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListBillingGroupCostReportsResponseUnmarshaller.Instance; return Invoke<ListBillingGroupCostReportsResponse>(request, options); } /// <summary> /// A paginated call to retrieve a summary report of actual Amazon Web Services charges /// and the calculated Amazon Web Services charges based on the associated pricing plan /// of a billing group. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListBillingGroupCostReports service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListBillingGroupCostReports service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListBillingGroupCostReports">REST API Reference for ListBillingGroupCostReports Operation</seealso> public virtual Task<ListBillingGroupCostReportsResponse> ListBillingGroupCostReportsAsync(ListBillingGroupCostReportsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListBillingGroupCostReportsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListBillingGroupCostReportsResponseUnmarshaller.Instance; return InvokeAsync<ListBillingGroupCostReportsResponse>(request, options, cancellationToken); } #endregion #region ListBillingGroups /// <summary> /// A paginated call to retrieve a list of billing groups for the given billing period. /// If you don't provide a billing group, the current billing period is used. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListBillingGroups service method.</param> /// /// <returns>The response from the ListBillingGroups service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListBillingGroups">REST API Reference for ListBillingGroups Operation</seealso> public virtual ListBillingGroupsResponse ListBillingGroups(ListBillingGroupsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListBillingGroupsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListBillingGroupsResponseUnmarshaller.Instance; return Invoke<ListBillingGroupsResponse>(request, options); } /// <summary> /// A paginated call to retrieve a list of billing groups for the given billing period. /// If you don't provide a billing group, the current billing period is used. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListBillingGroups service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListBillingGroups service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListBillingGroups">REST API Reference for ListBillingGroups Operation</seealso> public virtual Task<ListBillingGroupsResponse> ListBillingGroupsAsync(ListBillingGroupsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListBillingGroupsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListBillingGroupsResponseUnmarshaller.Instance; return InvokeAsync<ListBillingGroupsResponse>(request, options, cancellationToken); } #endregion #region ListCustomLineItems /// <summary> /// A paginated call to get a list of all custom line items (FFLIs) for the given billing /// period. If you don't provide a billing period, the current billing period is used. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListCustomLineItems service method.</param> /// /// <returns>The response from the ListCustomLineItems service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListCustomLineItems">REST API Reference for ListCustomLineItems Operation</seealso> public virtual ListCustomLineItemsResponse ListCustomLineItems(ListCustomLineItemsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListCustomLineItemsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListCustomLineItemsResponseUnmarshaller.Instance; return Invoke<ListCustomLineItemsResponse>(request, options); } /// <summary> /// A paginated call to get a list of all custom line items (FFLIs) for the given billing /// period. If you don't provide a billing period, the current billing period is used. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListCustomLineItems service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListCustomLineItems service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListCustomLineItems">REST API Reference for ListCustomLineItems Operation</seealso> public virtual Task<ListCustomLineItemsResponse> ListCustomLineItemsAsync(ListCustomLineItemsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListCustomLineItemsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListCustomLineItemsResponseUnmarshaller.Instance; return InvokeAsync<ListCustomLineItemsResponse>(request, options, cancellationToken); } #endregion #region ListCustomLineItemVersions /// <summary> /// A paginated call to get a list of all custom line item versions. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListCustomLineItemVersions service method.</param> /// /// <returns>The response from the ListCustomLineItemVersions service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListCustomLineItemVersions">REST API Reference for ListCustomLineItemVersions Operation</seealso> public virtual ListCustomLineItemVersionsResponse ListCustomLineItemVersions(ListCustomLineItemVersionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListCustomLineItemVersionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListCustomLineItemVersionsResponseUnmarshaller.Instance; return Invoke<ListCustomLineItemVersionsResponse>(request, options); } /// <summary> /// A paginated call to get a list of all custom line item versions. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListCustomLineItemVersions service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListCustomLineItemVersions service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListCustomLineItemVersions">REST API Reference for ListCustomLineItemVersions Operation</seealso> public virtual Task<ListCustomLineItemVersionsResponse> ListCustomLineItemVersionsAsync(ListCustomLineItemVersionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListCustomLineItemVersionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListCustomLineItemVersionsResponseUnmarshaller.Instance; return InvokeAsync<ListCustomLineItemVersionsResponse>(request, options, cancellationToken); } #endregion #region ListPricingPlans /// <summary> /// A paginated call to get pricing plans for the given billing period. If you don't provide /// a billing period, the current billing period is used. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListPricingPlans service method.</param> /// /// <returns>The response from the ListPricingPlans service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListPricingPlans">REST API Reference for ListPricingPlans Operation</seealso> public virtual ListPricingPlansResponse ListPricingPlans(ListPricingPlansRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListPricingPlansRequestMarshaller.Instance; options.ResponseUnmarshaller = ListPricingPlansResponseUnmarshaller.Instance; return Invoke<ListPricingPlansResponse>(request, options); } /// <summary> /// A paginated call to get pricing plans for the given billing period. If you don't provide /// a billing period, the current billing period is used. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListPricingPlans service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListPricingPlans service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListPricingPlans">REST API Reference for ListPricingPlans Operation</seealso> public virtual Task<ListPricingPlansResponse> ListPricingPlansAsync(ListPricingPlansRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListPricingPlansRequestMarshaller.Instance; options.ResponseUnmarshaller = ListPricingPlansResponseUnmarshaller.Instance; return InvokeAsync<ListPricingPlansResponse>(request, options, cancellationToken); } #endregion #region ListPricingPlansAssociatedWithPricingRule /// <summary> /// A list of the pricing plans that are associated with a pricing rule. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListPricingPlansAssociatedWithPricingRule service method.</param> /// /// <returns>The response from the ListPricingPlansAssociatedWithPricingRule service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListPricingPlansAssociatedWithPricingRule">REST API Reference for ListPricingPlansAssociatedWithPricingRule Operation</seealso> public virtual ListPricingPlansAssociatedWithPricingRuleResponse ListPricingPlansAssociatedWithPricingRule(ListPricingPlansAssociatedWithPricingRuleRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListPricingPlansAssociatedWithPricingRuleRequestMarshaller.Instance; options.ResponseUnmarshaller = ListPricingPlansAssociatedWithPricingRuleResponseUnmarshaller.Instance; return Invoke<ListPricingPlansAssociatedWithPricingRuleResponse>(request, options); } /// <summary> /// A list of the pricing plans that are associated with a pricing rule. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListPricingPlansAssociatedWithPricingRule service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListPricingPlansAssociatedWithPricingRule service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListPricingPlansAssociatedWithPricingRule">REST API Reference for ListPricingPlansAssociatedWithPricingRule Operation</seealso> public virtual Task<ListPricingPlansAssociatedWithPricingRuleResponse> ListPricingPlansAssociatedWithPricingRuleAsync(ListPricingPlansAssociatedWithPricingRuleRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListPricingPlansAssociatedWithPricingRuleRequestMarshaller.Instance; options.ResponseUnmarshaller = ListPricingPlansAssociatedWithPricingRuleResponseUnmarshaller.Instance; return InvokeAsync<ListPricingPlansAssociatedWithPricingRuleResponse>(request, options, cancellationToken); } #endregion #region ListPricingRules /// <summary> /// Describes a pricing rule that can be associated to a pricing plan, or set of pricing /// plans. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListPricingRules service method.</param> /// /// <returns>The response from the ListPricingRules service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListPricingRules">REST API Reference for ListPricingRules Operation</seealso> public virtual ListPricingRulesResponse ListPricingRules(ListPricingRulesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListPricingRulesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListPricingRulesResponseUnmarshaller.Instance; return Invoke<ListPricingRulesResponse>(request, options); } /// <summary> /// Describes a pricing rule that can be associated to a pricing plan, or set of pricing /// plans. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListPricingRules service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListPricingRules service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListPricingRules">REST API Reference for ListPricingRules Operation</seealso> public virtual Task<ListPricingRulesResponse> ListPricingRulesAsync(ListPricingRulesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListPricingRulesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListPricingRulesResponseUnmarshaller.Instance; return InvokeAsync<ListPricingRulesResponse>(request, options, cancellationToken); } #endregion #region ListPricingRulesAssociatedToPricingPlan /// <summary> /// Lists the pricing rules that are associated with a pricing plan. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListPricingRulesAssociatedToPricingPlan service method.</param> /// /// <returns>The response from the ListPricingRulesAssociatedToPricingPlan service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListPricingRulesAssociatedToPricingPlan">REST API Reference for ListPricingRulesAssociatedToPricingPlan Operation</seealso> public virtual ListPricingRulesAssociatedToPricingPlanResponse ListPricingRulesAssociatedToPricingPlan(ListPricingRulesAssociatedToPricingPlanRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListPricingRulesAssociatedToPricingPlanRequestMarshaller.Instance; options.ResponseUnmarshaller = ListPricingRulesAssociatedToPricingPlanResponseUnmarshaller.Instance; return Invoke<ListPricingRulesAssociatedToPricingPlanResponse>(request, options); } /// <summary> /// Lists the pricing rules that are associated with a pricing plan. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListPricingRulesAssociatedToPricingPlan service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListPricingRulesAssociatedToPricingPlan service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListPricingRulesAssociatedToPricingPlan">REST API Reference for ListPricingRulesAssociatedToPricingPlan Operation</seealso> public virtual Task<ListPricingRulesAssociatedToPricingPlanResponse> ListPricingRulesAssociatedToPricingPlanAsync(ListPricingRulesAssociatedToPricingPlanRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListPricingRulesAssociatedToPricingPlanRequestMarshaller.Instance; options.ResponseUnmarshaller = ListPricingRulesAssociatedToPricingPlanResponseUnmarshaller.Instance; return InvokeAsync<ListPricingRulesAssociatedToPricingPlanResponse>(request, options, cancellationToken); } #endregion #region ListResourcesAssociatedToCustomLineItem /// <summary> /// List the resources that are associated to a custom line item. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListResourcesAssociatedToCustomLineItem service method.</param> /// /// <returns>The response from the ListResourcesAssociatedToCustomLineItem service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListResourcesAssociatedToCustomLineItem">REST API Reference for ListResourcesAssociatedToCustomLineItem Operation</seealso> public virtual ListResourcesAssociatedToCustomLineItemResponse ListResourcesAssociatedToCustomLineItem(ListResourcesAssociatedToCustomLineItemRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListResourcesAssociatedToCustomLineItemRequestMarshaller.Instance; options.ResponseUnmarshaller = ListResourcesAssociatedToCustomLineItemResponseUnmarshaller.Instance; return Invoke<ListResourcesAssociatedToCustomLineItemResponse>(request, options); } /// <summary> /// List the resources that are associated to a custom line item. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListResourcesAssociatedToCustomLineItem service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListResourcesAssociatedToCustomLineItem service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListResourcesAssociatedToCustomLineItem">REST API Reference for ListResourcesAssociatedToCustomLineItem Operation</seealso> public virtual Task<ListResourcesAssociatedToCustomLineItemResponse> ListResourcesAssociatedToCustomLineItemAsync(ListResourcesAssociatedToCustomLineItemRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListResourcesAssociatedToCustomLineItemRequestMarshaller.Instance; options.ResponseUnmarshaller = ListResourcesAssociatedToCustomLineItemResponseUnmarshaller.Instance; return InvokeAsync<ListResourcesAssociatedToCustomLineItemResponse>(request, options, cancellationToken); } #endregion #region ListTagsForResource /// <summary> /// A list the tags for a resource. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListTagsForResource service method.</param> /// /// <returns>The response from the ListTagsForResource service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso> public virtual ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance; return Invoke<ListTagsForResourceResponse>(request, options); } /// <summary> /// A list the tags for a resource. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListTagsForResource service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListTagsForResource service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso> public virtual Task<ListTagsForResourceResponse> ListTagsForResourceAsync(ListTagsForResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance; return InvokeAsync<ListTagsForResourceResponse>(request, options, cancellationToken); } #endregion #region TagResource /// <summary> /// Associates the specified tags to a resource with the specified <code>resourceArn</code>. /// If existing tags on a resource are not specified in the request parameters, they are /// not changed. /// </summary> /// <param name="request">Container for the necessary parameters to execute the TagResource service method.</param> /// /// <returns>The response from the TagResource service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/TagResource">REST API Reference for TagResource Operation</seealso> public virtual TagResourceResponse TagResource(TagResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = TagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance; return Invoke<TagResourceResponse>(request, options); } /// <summary> /// Associates the specified tags to a resource with the specified <code>resourceArn</code>. /// If existing tags on a resource are not specified in the request parameters, they are /// not changed. /// </summary> /// <param name="request">Container for the necessary parameters to execute the TagResource service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the TagResource service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/TagResource">REST API Reference for TagResource Operation</seealso> public virtual Task<TagResourceResponse> TagResourceAsync(TagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = TagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance; return InvokeAsync<TagResourceResponse>(request, options, cancellationToken); } #endregion #region UntagResource /// <summary> /// Deletes specified tags from a resource. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UntagResource service method.</param> /// /// <returns>The response from the UntagResource service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/UntagResource">REST API Reference for UntagResource Operation</seealso> public virtual UntagResourceResponse UntagResource(UntagResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UntagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance; return Invoke<UntagResourceResponse>(request, options); } /// <summary> /// Deletes specified tags from a resource. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UntagResource service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UntagResource service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/UntagResource">REST API Reference for UntagResource Operation</seealso> public virtual Task<UntagResourceResponse> UntagResourceAsync(UntagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UntagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance; return InvokeAsync<UntagResourceResponse>(request, options, cancellationToken); } #endregion #region UpdateBillingGroup /// <summary> /// This updates an existing billing group. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateBillingGroup service method.</param> /// /// <returns>The response from the UpdateBillingGroup service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/UpdateBillingGroup">REST API Reference for UpdateBillingGroup Operation</seealso> public virtual UpdateBillingGroupResponse UpdateBillingGroup(UpdateBillingGroupRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateBillingGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateBillingGroupResponseUnmarshaller.Instance; return Invoke<UpdateBillingGroupResponse>(request, options); } /// <summary> /// This updates an existing billing group. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateBillingGroup service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdateBillingGroup service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/UpdateBillingGroup">REST API Reference for UpdateBillingGroup Operation</seealso> public virtual Task<UpdateBillingGroupResponse> UpdateBillingGroupAsync(UpdateBillingGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateBillingGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateBillingGroupResponseUnmarshaller.Instance; return InvokeAsync<UpdateBillingGroupResponse>(request, options, cancellationToken); } #endregion #region UpdateCustomLineItem /// <summary> /// Update an existing custom line item in the current or previous billing period. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateCustomLineItem service method.</param> /// /// <returns>The response from the UpdateCustomLineItem service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/UpdateCustomLineItem">REST API Reference for UpdateCustomLineItem Operation</seealso> public virtual UpdateCustomLineItemResponse UpdateCustomLineItem(UpdateCustomLineItemRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateCustomLineItemRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateCustomLineItemResponseUnmarshaller.Instance; return Invoke<UpdateCustomLineItemResponse>(request, options); } /// <summary> /// Update an existing custom line item in the current or previous billing period. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateCustomLineItem service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdateCustomLineItem service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/UpdateCustomLineItem">REST API Reference for UpdateCustomLineItem Operation</seealso> public virtual Task<UpdateCustomLineItemResponse> UpdateCustomLineItemAsync(UpdateCustomLineItemRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateCustomLineItemRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateCustomLineItemResponseUnmarshaller.Instance; return InvokeAsync<UpdateCustomLineItemResponse>(request, options, cancellationToken); } #endregion #region UpdatePricingPlan /// <summary> /// This updates an existing pricing plan. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdatePricingPlan service method.</param> /// /// <returns>The response from the UpdatePricingPlan service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/UpdatePricingPlan">REST API Reference for UpdatePricingPlan Operation</seealso> public virtual UpdatePricingPlanResponse UpdatePricingPlan(UpdatePricingPlanRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdatePricingPlanRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdatePricingPlanResponseUnmarshaller.Instance; return Invoke<UpdatePricingPlanResponse>(request, options); } /// <summary> /// This updates an existing pricing plan. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdatePricingPlan service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdatePricingPlan service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/UpdatePricingPlan">REST API Reference for UpdatePricingPlan Operation</seealso> public virtual Task<UpdatePricingPlanResponse> UpdatePricingPlanAsync(UpdatePricingPlanRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdatePricingPlanRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdatePricingPlanResponseUnmarshaller.Instance; return InvokeAsync<UpdatePricingPlanResponse>(request, options, cancellationToken); } #endregion #region UpdatePricingRule /// <summary> /// Updates an existing pricing rule. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdatePricingRule service method.</param> /// /// <returns>The response from the UpdatePricingRule service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/UpdatePricingRule">REST API Reference for UpdatePricingRule Operation</seealso> public virtual UpdatePricingRuleResponse UpdatePricingRule(UpdatePricingRuleRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdatePricingRuleRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdatePricingRuleResponseUnmarshaller.Instance; return Invoke<UpdatePricingRuleResponse>(request, options); } /// <summary> /// Updates an existing pricing rule. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdatePricingRule service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdatePricingRule service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/UpdatePricingRule">REST API Reference for UpdatePricingRule Operation</seealso> public virtual Task<UpdatePricingRuleResponse> UpdatePricingRuleAsync(UpdatePricingRuleRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdatePricingRuleRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdatePricingRuleResponseUnmarshaller.Instance; return InvokeAsync<UpdatePricingRuleResponse>(request, options, cancellationToken); } #endregion } }
2,609
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using System.Threading; using System.Threading.Tasks; using System.Collections.Generic; using Amazon.Runtime; using Amazon.BillingConductor.Model; namespace Amazon.BillingConductor { /// <summary> /// Interface for accessing BillingConductor /// /// Amazon Web Services Billing Conductor is a fully managed service that you can use /// to customize a <a href="https://docs.aws.amazon.com/billingconductor/latest/userguide/understanding-eb.html#eb-other-definitions">pro /// forma</a> version of your billing data each month, to accurately show or chargeback /// your end customers. Amazon Web Services Billing Conductor doesn't change the way you're /// billed by Amazon Web Services each month by design. Instead, it provides you with /// a mechanism to configure, generate, and display rates to certain customers over a /// given billing period. You can also analyze the difference between the rates you apply /// to your accounting groupings relative to your actual rates from Amazon Web Services. /// As a result of your Amazon Web Services Billing Conductor configuration, the payer /// account can also see the custom rate applied on the billing details page of the <a /// href="https://console.aws.amazon.com/billing">Amazon Web Services Billing console</a>, /// or configure a cost and usage report per billing group. /// /// /// <para> /// This documentation shows how you can configure Amazon Web Services Billing Conductor /// using its API. For more information about using the <a href="https://console.aws.amazon.com/billingconductor/">Amazon /// Web Services Billing Conductor</a> user interface, see the <a href="https://docs.aws.amazon.com/billingconductor/latest/userguide/what-is-billingconductor.html"> /// Amazon Web Services Billing Conductor User Guide</a>. /// </para> /// </summary> public partial interface IAmazonBillingConductor : IAmazonService, IDisposable { /// <summary> /// Paginators for the service /// </summary> IBillingConductorPaginatorFactory Paginators { get; } #region AssociateAccounts /// <summary> /// Connects an array of account IDs in a consolidated billing family to a predefined /// billing group. The account IDs must be a part of the consolidated billing family during /// the current month, and not already associated with another billing group. The maximum /// number of accounts that can be associated in one call is 30. /// </summary> /// <param name="request">Container for the necessary parameters to execute the AssociateAccounts service method.</param> /// /// <returns>The response from the AssociateAccounts service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ServiceLimitExceededException"> /// The request would cause a service limit to exceed. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/AssociateAccounts">REST API Reference for AssociateAccounts Operation</seealso> AssociateAccountsResponse AssociateAccounts(AssociateAccountsRequest request); /// <summary> /// Connects an array of account IDs in a consolidated billing family to a predefined /// billing group. The account IDs must be a part of the consolidated billing family during /// the current month, and not already associated with another billing group. The maximum /// number of accounts that can be associated in one call is 30. /// </summary> /// <param name="request">Container for the necessary parameters to execute the AssociateAccounts service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the AssociateAccounts service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ServiceLimitExceededException"> /// The request would cause a service limit to exceed. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/AssociateAccounts">REST API Reference for AssociateAccounts Operation</seealso> Task<AssociateAccountsResponse> AssociateAccountsAsync(AssociateAccountsRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region AssociatePricingRules /// <summary> /// Connects an array of <code>PricingRuleArns</code> to a defined <code>PricingPlan</code>. /// The maximum number <code>PricingRuleArn</code> that can be associated in one call /// is 30. /// </summary> /// <param name="request">Container for the necessary parameters to execute the AssociatePricingRules service method.</param> /// /// <returns>The response from the AssociatePricingRules service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ServiceLimitExceededException"> /// The request would cause a service limit to exceed. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/AssociatePricingRules">REST API Reference for AssociatePricingRules Operation</seealso> AssociatePricingRulesResponse AssociatePricingRules(AssociatePricingRulesRequest request); /// <summary> /// Connects an array of <code>PricingRuleArns</code> to a defined <code>PricingPlan</code>. /// The maximum number <code>PricingRuleArn</code> that can be associated in one call /// is 30. /// </summary> /// <param name="request">Container for the necessary parameters to execute the AssociatePricingRules service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the AssociatePricingRules service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ServiceLimitExceededException"> /// The request would cause a service limit to exceed. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/AssociatePricingRules">REST API Reference for AssociatePricingRules Operation</seealso> Task<AssociatePricingRulesResponse> AssociatePricingRulesAsync(AssociatePricingRulesRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region BatchAssociateResourcesToCustomLineItem /// <summary> /// Associates a batch of resources to a percentage custom line item. /// </summary> /// <param name="request">Container for the necessary parameters to execute the BatchAssociateResourcesToCustomLineItem service method.</param> /// /// <returns>The response from the BatchAssociateResourcesToCustomLineItem service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ServiceLimitExceededException"> /// The request would cause a service limit to exceed. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/BatchAssociateResourcesToCustomLineItem">REST API Reference for BatchAssociateResourcesToCustomLineItem Operation</seealso> BatchAssociateResourcesToCustomLineItemResponse BatchAssociateResourcesToCustomLineItem(BatchAssociateResourcesToCustomLineItemRequest request); /// <summary> /// Associates a batch of resources to a percentage custom line item. /// </summary> /// <param name="request">Container for the necessary parameters to execute the BatchAssociateResourcesToCustomLineItem service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the BatchAssociateResourcesToCustomLineItem service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ServiceLimitExceededException"> /// The request would cause a service limit to exceed. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/BatchAssociateResourcesToCustomLineItem">REST API Reference for BatchAssociateResourcesToCustomLineItem Operation</seealso> Task<BatchAssociateResourcesToCustomLineItemResponse> BatchAssociateResourcesToCustomLineItemAsync(BatchAssociateResourcesToCustomLineItemRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region BatchDisassociateResourcesFromCustomLineItem /// <summary> /// Disassociates a batch of resources from a percentage custom line item. /// </summary> /// <param name="request">Container for the necessary parameters to execute the BatchDisassociateResourcesFromCustomLineItem service method.</param> /// /// <returns>The response from the BatchDisassociateResourcesFromCustomLineItem service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/BatchDisassociateResourcesFromCustomLineItem">REST API Reference for BatchDisassociateResourcesFromCustomLineItem Operation</seealso> BatchDisassociateResourcesFromCustomLineItemResponse BatchDisassociateResourcesFromCustomLineItem(BatchDisassociateResourcesFromCustomLineItemRequest request); /// <summary> /// Disassociates a batch of resources from a percentage custom line item. /// </summary> /// <param name="request">Container for the necessary parameters to execute the BatchDisassociateResourcesFromCustomLineItem service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the BatchDisassociateResourcesFromCustomLineItem service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/BatchDisassociateResourcesFromCustomLineItem">REST API Reference for BatchDisassociateResourcesFromCustomLineItem Operation</seealso> Task<BatchDisassociateResourcesFromCustomLineItemResponse> BatchDisassociateResourcesFromCustomLineItemAsync(BatchDisassociateResourcesFromCustomLineItemRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region CreateBillingGroup /// <summary> /// Creates a billing group that resembles a consolidated billing family that Amazon /// Web Services charges, based off of the predefined pricing plan computation. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateBillingGroup service method.</param> /// /// <returns>The response from the CreateBillingGroup service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ServiceLimitExceededException"> /// The request would cause a service limit to exceed. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/CreateBillingGroup">REST API Reference for CreateBillingGroup Operation</seealso> CreateBillingGroupResponse CreateBillingGroup(CreateBillingGroupRequest request); /// <summary> /// Creates a billing group that resembles a consolidated billing family that Amazon /// Web Services charges, based off of the predefined pricing plan computation. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateBillingGroup service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreateBillingGroup service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ServiceLimitExceededException"> /// The request would cause a service limit to exceed. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/CreateBillingGroup">REST API Reference for CreateBillingGroup Operation</seealso> Task<CreateBillingGroupResponse> CreateBillingGroupAsync(CreateBillingGroupRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region CreateCustomLineItem /// <summary> /// Creates a custom line item that can be used to create a one-time fixed charge that /// can be applied to a single billing group for the current or previous billing period. /// The one-time fixed charge is either a fee or discount. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateCustomLineItem service method.</param> /// /// <returns>The response from the CreateCustomLineItem service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ServiceLimitExceededException"> /// The request would cause a service limit to exceed. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/CreateCustomLineItem">REST API Reference for CreateCustomLineItem Operation</seealso> CreateCustomLineItemResponse CreateCustomLineItem(CreateCustomLineItemRequest request); /// <summary> /// Creates a custom line item that can be used to create a one-time fixed charge that /// can be applied to a single billing group for the current or previous billing period. /// The one-time fixed charge is either a fee or discount. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateCustomLineItem service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreateCustomLineItem service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ServiceLimitExceededException"> /// The request would cause a service limit to exceed. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/CreateCustomLineItem">REST API Reference for CreateCustomLineItem Operation</seealso> Task<CreateCustomLineItemResponse> CreateCustomLineItemAsync(CreateCustomLineItemRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region CreatePricingPlan /// <summary> /// Creates a pricing plan that is used for computing Amazon Web Services charges for /// billing groups. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreatePricingPlan service method.</param> /// /// <returns>The response from the CreatePricingPlan service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ServiceLimitExceededException"> /// The request would cause a service limit to exceed. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/CreatePricingPlan">REST API Reference for CreatePricingPlan Operation</seealso> CreatePricingPlanResponse CreatePricingPlan(CreatePricingPlanRequest request); /// <summary> /// Creates a pricing plan that is used for computing Amazon Web Services charges for /// billing groups. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreatePricingPlan service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreatePricingPlan service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ServiceLimitExceededException"> /// The request would cause a service limit to exceed. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/CreatePricingPlan">REST API Reference for CreatePricingPlan Operation</seealso> Task<CreatePricingPlanResponse> CreatePricingPlanAsync(CreatePricingPlanRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region CreatePricingRule /// <summary> /// Creates a pricing rule can be associated to a pricing plan, or a set of pricing plans. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreatePricingRule service method.</param> /// /// <returns>The response from the CreatePricingRule service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ServiceLimitExceededException"> /// The request would cause a service limit to exceed. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/CreatePricingRule">REST API Reference for CreatePricingRule Operation</seealso> CreatePricingRuleResponse CreatePricingRule(CreatePricingRuleRequest request); /// <summary> /// Creates a pricing rule can be associated to a pricing plan, or a set of pricing plans. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreatePricingRule service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreatePricingRule service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ServiceLimitExceededException"> /// The request would cause a service limit to exceed. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/CreatePricingRule">REST API Reference for CreatePricingRule Operation</seealso> Task<CreatePricingRuleResponse> CreatePricingRuleAsync(CreatePricingRuleRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeleteBillingGroup /// <summary> /// Deletes a billing group. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteBillingGroup service method.</param> /// /// <returns>The response from the DeleteBillingGroup service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/DeleteBillingGroup">REST API Reference for DeleteBillingGroup Operation</seealso> DeleteBillingGroupResponse DeleteBillingGroup(DeleteBillingGroupRequest request); /// <summary> /// Deletes a billing group. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteBillingGroup service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteBillingGroup service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/DeleteBillingGroup">REST API Reference for DeleteBillingGroup Operation</seealso> Task<DeleteBillingGroupResponse> DeleteBillingGroupAsync(DeleteBillingGroupRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeleteCustomLineItem /// <summary> /// Deletes the custom line item identified by the given ARN in the current, or previous /// billing period. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteCustomLineItem service method.</param> /// /// <returns>The response from the DeleteCustomLineItem service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/DeleteCustomLineItem">REST API Reference for DeleteCustomLineItem Operation</seealso> DeleteCustomLineItemResponse DeleteCustomLineItem(DeleteCustomLineItemRequest request); /// <summary> /// Deletes the custom line item identified by the given ARN in the current, or previous /// billing period. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteCustomLineItem service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteCustomLineItem service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/DeleteCustomLineItem">REST API Reference for DeleteCustomLineItem Operation</seealso> Task<DeleteCustomLineItemResponse> DeleteCustomLineItemAsync(DeleteCustomLineItemRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeletePricingPlan /// <summary> /// Deletes a pricing plan. The pricing plan must not be associated with any billing groups /// to delete successfully. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeletePricingPlan service method.</param> /// /// <returns>The response from the DeletePricingPlan service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/DeletePricingPlan">REST API Reference for DeletePricingPlan Operation</seealso> DeletePricingPlanResponse DeletePricingPlan(DeletePricingPlanRequest request); /// <summary> /// Deletes a pricing plan. The pricing plan must not be associated with any billing groups /// to delete successfully. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeletePricingPlan service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeletePricingPlan service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/DeletePricingPlan">REST API Reference for DeletePricingPlan Operation</seealso> Task<DeletePricingPlanResponse> DeletePricingPlanAsync(DeletePricingPlanRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeletePricingRule /// <summary> /// Deletes the pricing rule that's identified by the input Amazon Resource Name (ARN). /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeletePricingRule service method.</param> /// /// <returns>The response from the DeletePricingRule service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/DeletePricingRule">REST API Reference for DeletePricingRule Operation</seealso> DeletePricingRuleResponse DeletePricingRule(DeletePricingRuleRequest request); /// <summary> /// Deletes the pricing rule that's identified by the input Amazon Resource Name (ARN). /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeletePricingRule service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeletePricingRule service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/DeletePricingRule">REST API Reference for DeletePricingRule Operation</seealso> Task<DeletePricingRuleResponse> DeletePricingRuleAsync(DeletePricingRuleRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DisassociateAccounts /// <summary> /// Removes the specified list of account IDs from the given billing group. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DisassociateAccounts service method.</param> /// /// <returns>The response from the DisassociateAccounts service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/DisassociateAccounts">REST API Reference for DisassociateAccounts Operation</seealso> DisassociateAccountsResponse DisassociateAccounts(DisassociateAccountsRequest request); /// <summary> /// Removes the specified list of account IDs from the given billing group. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DisassociateAccounts service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DisassociateAccounts service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/DisassociateAccounts">REST API Reference for DisassociateAccounts Operation</seealso> Task<DisassociateAccountsResponse> DisassociateAccountsAsync(DisassociateAccountsRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DisassociatePricingRules /// <summary> /// Disassociates a list of pricing rules from a pricing plan. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DisassociatePricingRules service method.</param> /// /// <returns>The response from the DisassociatePricingRules service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/DisassociatePricingRules">REST API Reference for DisassociatePricingRules Operation</seealso> DisassociatePricingRulesResponse DisassociatePricingRules(DisassociatePricingRulesRequest request); /// <summary> /// Disassociates a list of pricing rules from a pricing plan. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DisassociatePricingRules service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DisassociatePricingRules service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/DisassociatePricingRules">REST API Reference for DisassociatePricingRules Operation</seealso> Task<DisassociatePricingRulesResponse> DisassociatePricingRulesAsync(DisassociatePricingRulesRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListAccountAssociations /// <summary> /// This is a paginated call to list linked accounts that are linked to the payer account /// for the specified time period. If no information is provided, the current billing /// period is used. The response will optionally include the billing group that's associated /// with the linked account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListAccountAssociations service method.</param> /// /// <returns>The response from the ListAccountAssociations service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListAccountAssociations">REST API Reference for ListAccountAssociations Operation</seealso> ListAccountAssociationsResponse ListAccountAssociations(ListAccountAssociationsRequest request); /// <summary> /// This is a paginated call to list linked accounts that are linked to the payer account /// for the specified time period. If no information is provided, the current billing /// period is used. The response will optionally include the billing group that's associated /// with the linked account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListAccountAssociations service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListAccountAssociations service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListAccountAssociations">REST API Reference for ListAccountAssociations Operation</seealso> Task<ListAccountAssociationsResponse> ListAccountAssociationsAsync(ListAccountAssociationsRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListBillingGroupCostReports /// <summary> /// A paginated call to retrieve a summary report of actual Amazon Web Services charges /// and the calculated Amazon Web Services charges based on the associated pricing plan /// of a billing group. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListBillingGroupCostReports service method.</param> /// /// <returns>The response from the ListBillingGroupCostReports service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListBillingGroupCostReports">REST API Reference for ListBillingGroupCostReports Operation</seealso> ListBillingGroupCostReportsResponse ListBillingGroupCostReports(ListBillingGroupCostReportsRequest request); /// <summary> /// A paginated call to retrieve a summary report of actual Amazon Web Services charges /// and the calculated Amazon Web Services charges based on the associated pricing plan /// of a billing group. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListBillingGroupCostReports service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListBillingGroupCostReports service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListBillingGroupCostReports">REST API Reference for ListBillingGroupCostReports Operation</seealso> Task<ListBillingGroupCostReportsResponse> ListBillingGroupCostReportsAsync(ListBillingGroupCostReportsRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListBillingGroups /// <summary> /// A paginated call to retrieve a list of billing groups for the given billing period. /// If you don't provide a billing group, the current billing period is used. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListBillingGroups service method.</param> /// /// <returns>The response from the ListBillingGroups service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListBillingGroups">REST API Reference for ListBillingGroups Operation</seealso> ListBillingGroupsResponse ListBillingGroups(ListBillingGroupsRequest request); /// <summary> /// A paginated call to retrieve a list of billing groups for the given billing period. /// If you don't provide a billing group, the current billing period is used. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListBillingGroups service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListBillingGroups service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListBillingGroups">REST API Reference for ListBillingGroups Operation</seealso> Task<ListBillingGroupsResponse> ListBillingGroupsAsync(ListBillingGroupsRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListCustomLineItems /// <summary> /// A paginated call to get a list of all custom line items (FFLIs) for the given billing /// period. If you don't provide a billing period, the current billing period is used. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListCustomLineItems service method.</param> /// /// <returns>The response from the ListCustomLineItems service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListCustomLineItems">REST API Reference for ListCustomLineItems Operation</seealso> ListCustomLineItemsResponse ListCustomLineItems(ListCustomLineItemsRequest request); /// <summary> /// A paginated call to get a list of all custom line items (FFLIs) for the given billing /// period. If you don't provide a billing period, the current billing period is used. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListCustomLineItems service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListCustomLineItems service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListCustomLineItems">REST API Reference for ListCustomLineItems Operation</seealso> Task<ListCustomLineItemsResponse> ListCustomLineItemsAsync(ListCustomLineItemsRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListCustomLineItemVersions /// <summary> /// A paginated call to get a list of all custom line item versions. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListCustomLineItemVersions service method.</param> /// /// <returns>The response from the ListCustomLineItemVersions service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListCustomLineItemVersions">REST API Reference for ListCustomLineItemVersions Operation</seealso> ListCustomLineItemVersionsResponse ListCustomLineItemVersions(ListCustomLineItemVersionsRequest request); /// <summary> /// A paginated call to get a list of all custom line item versions. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListCustomLineItemVersions service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListCustomLineItemVersions service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListCustomLineItemVersions">REST API Reference for ListCustomLineItemVersions Operation</seealso> Task<ListCustomLineItemVersionsResponse> ListCustomLineItemVersionsAsync(ListCustomLineItemVersionsRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListPricingPlans /// <summary> /// A paginated call to get pricing plans for the given billing period. If you don't provide /// a billing period, the current billing period is used. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListPricingPlans service method.</param> /// /// <returns>The response from the ListPricingPlans service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListPricingPlans">REST API Reference for ListPricingPlans Operation</seealso> ListPricingPlansResponse ListPricingPlans(ListPricingPlansRequest request); /// <summary> /// A paginated call to get pricing plans for the given billing period. If you don't provide /// a billing period, the current billing period is used. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListPricingPlans service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListPricingPlans service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListPricingPlans">REST API Reference for ListPricingPlans Operation</seealso> Task<ListPricingPlansResponse> ListPricingPlansAsync(ListPricingPlansRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListPricingPlansAssociatedWithPricingRule /// <summary> /// A list of the pricing plans that are associated with a pricing rule. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListPricingPlansAssociatedWithPricingRule service method.</param> /// /// <returns>The response from the ListPricingPlansAssociatedWithPricingRule service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListPricingPlansAssociatedWithPricingRule">REST API Reference for ListPricingPlansAssociatedWithPricingRule Operation</seealso> ListPricingPlansAssociatedWithPricingRuleResponse ListPricingPlansAssociatedWithPricingRule(ListPricingPlansAssociatedWithPricingRuleRequest request); /// <summary> /// A list of the pricing plans that are associated with a pricing rule. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListPricingPlansAssociatedWithPricingRule service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListPricingPlansAssociatedWithPricingRule service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListPricingPlansAssociatedWithPricingRule">REST API Reference for ListPricingPlansAssociatedWithPricingRule Operation</seealso> Task<ListPricingPlansAssociatedWithPricingRuleResponse> ListPricingPlansAssociatedWithPricingRuleAsync(ListPricingPlansAssociatedWithPricingRuleRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListPricingRules /// <summary> /// Describes a pricing rule that can be associated to a pricing plan, or set of pricing /// plans. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListPricingRules service method.</param> /// /// <returns>The response from the ListPricingRules service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListPricingRules">REST API Reference for ListPricingRules Operation</seealso> ListPricingRulesResponse ListPricingRules(ListPricingRulesRequest request); /// <summary> /// Describes a pricing rule that can be associated to a pricing plan, or set of pricing /// plans. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListPricingRules service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListPricingRules service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListPricingRules">REST API Reference for ListPricingRules Operation</seealso> Task<ListPricingRulesResponse> ListPricingRulesAsync(ListPricingRulesRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListPricingRulesAssociatedToPricingPlan /// <summary> /// Lists the pricing rules that are associated with a pricing plan. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListPricingRulesAssociatedToPricingPlan service method.</param> /// /// <returns>The response from the ListPricingRulesAssociatedToPricingPlan service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListPricingRulesAssociatedToPricingPlan">REST API Reference for ListPricingRulesAssociatedToPricingPlan Operation</seealso> ListPricingRulesAssociatedToPricingPlanResponse ListPricingRulesAssociatedToPricingPlan(ListPricingRulesAssociatedToPricingPlanRequest request); /// <summary> /// Lists the pricing rules that are associated with a pricing plan. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListPricingRulesAssociatedToPricingPlan service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListPricingRulesAssociatedToPricingPlan service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListPricingRulesAssociatedToPricingPlan">REST API Reference for ListPricingRulesAssociatedToPricingPlan Operation</seealso> Task<ListPricingRulesAssociatedToPricingPlanResponse> ListPricingRulesAssociatedToPricingPlanAsync(ListPricingRulesAssociatedToPricingPlanRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListResourcesAssociatedToCustomLineItem /// <summary> /// List the resources that are associated to a custom line item. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListResourcesAssociatedToCustomLineItem service method.</param> /// /// <returns>The response from the ListResourcesAssociatedToCustomLineItem service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListResourcesAssociatedToCustomLineItem">REST API Reference for ListResourcesAssociatedToCustomLineItem Operation</seealso> ListResourcesAssociatedToCustomLineItemResponse ListResourcesAssociatedToCustomLineItem(ListResourcesAssociatedToCustomLineItemRequest request); /// <summary> /// List the resources that are associated to a custom line item. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListResourcesAssociatedToCustomLineItem service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListResourcesAssociatedToCustomLineItem service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListResourcesAssociatedToCustomLineItem">REST API Reference for ListResourcesAssociatedToCustomLineItem Operation</seealso> Task<ListResourcesAssociatedToCustomLineItemResponse> ListResourcesAssociatedToCustomLineItemAsync(ListResourcesAssociatedToCustomLineItemRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListTagsForResource /// <summary> /// A list the tags for a resource. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListTagsForResource service method.</param> /// /// <returns>The response from the ListTagsForResource service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso> ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request); /// <summary> /// A list the tags for a resource. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListTagsForResource service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListTagsForResource service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso> Task<ListTagsForResourceResponse> ListTagsForResourceAsync(ListTagsForResourceRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region TagResource /// <summary> /// Associates the specified tags to a resource with the specified <code>resourceArn</code>. /// If existing tags on a resource are not specified in the request parameters, they are /// not changed. /// </summary> /// <param name="request">Container for the necessary parameters to execute the TagResource service method.</param> /// /// <returns>The response from the TagResource service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/TagResource">REST API Reference for TagResource Operation</seealso> TagResourceResponse TagResource(TagResourceRequest request); /// <summary> /// Associates the specified tags to a resource with the specified <code>resourceArn</code>. /// If existing tags on a resource are not specified in the request parameters, they are /// not changed. /// </summary> /// <param name="request">Container for the necessary parameters to execute the TagResource service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the TagResource service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/TagResource">REST API Reference for TagResource Operation</seealso> Task<TagResourceResponse> TagResourceAsync(TagResourceRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UntagResource /// <summary> /// Deletes specified tags from a resource. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UntagResource service method.</param> /// /// <returns>The response from the UntagResource service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/UntagResource">REST API Reference for UntagResource Operation</seealso> UntagResourceResponse UntagResource(UntagResourceRequest request); /// <summary> /// Deletes specified tags from a resource. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UntagResource service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UntagResource service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/UntagResource">REST API Reference for UntagResource Operation</seealso> Task<UntagResourceResponse> UntagResourceAsync(UntagResourceRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UpdateBillingGroup /// <summary> /// This updates an existing billing group. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateBillingGroup service method.</param> /// /// <returns>The response from the UpdateBillingGroup service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/UpdateBillingGroup">REST API Reference for UpdateBillingGroup Operation</seealso> UpdateBillingGroupResponse UpdateBillingGroup(UpdateBillingGroupRequest request); /// <summary> /// This updates an existing billing group. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateBillingGroup service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdateBillingGroup service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/UpdateBillingGroup">REST API Reference for UpdateBillingGroup Operation</seealso> Task<UpdateBillingGroupResponse> UpdateBillingGroupAsync(UpdateBillingGroupRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UpdateCustomLineItem /// <summary> /// Update an existing custom line item in the current or previous billing period. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateCustomLineItem service method.</param> /// /// <returns>The response from the UpdateCustomLineItem service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/UpdateCustomLineItem">REST API Reference for UpdateCustomLineItem Operation</seealso> UpdateCustomLineItemResponse UpdateCustomLineItem(UpdateCustomLineItemRequest request); /// <summary> /// Update an existing custom line item in the current or previous billing period. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateCustomLineItem service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdateCustomLineItem service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/UpdateCustomLineItem">REST API Reference for UpdateCustomLineItem Operation</seealso> Task<UpdateCustomLineItemResponse> UpdateCustomLineItemAsync(UpdateCustomLineItemRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UpdatePricingPlan /// <summary> /// This updates an existing pricing plan. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdatePricingPlan service method.</param> /// /// <returns>The response from the UpdatePricingPlan service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/UpdatePricingPlan">REST API Reference for UpdatePricingPlan Operation</seealso> UpdatePricingPlanResponse UpdatePricingPlan(UpdatePricingPlanRequest request); /// <summary> /// This updates an existing pricing plan. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdatePricingPlan service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdatePricingPlan service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/UpdatePricingPlan">REST API Reference for UpdatePricingPlan Operation</seealso> Task<UpdatePricingPlanResponse> UpdatePricingPlanAsync(UpdatePricingPlanRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UpdatePricingRule /// <summary> /// Updates an existing pricing rule. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdatePricingRule service method.</param> /// /// <returns>The response from the UpdatePricingRule service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/UpdatePricingRule">REST API Reference for UpdatePricingRule Operation</seealso> UpdatePricingRuleResponse UpdatePricingRule(UpdatePricingRuleRequest request); /// <summary> /// Updates an existing pricing rule. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdatePricingRule service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdatePricingRule service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/UpdatePricingRule">REST API Reference for UpdatePricingRule Operation</seealso> Task<UpdatePricingRuleResponse> UpdatePricingRuleAsync(UpdatePricingRuleRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion } }
1,985
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.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.BillingConductor.Model; using Amazon.BillingConductor.Model.Internal.MarshallTransformations; using Amazon.BillingConductor.Internal; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Auth; using Amazon.Runtime.Internal.Transform; namespace Amazon.BillingConductor { /// <summary> /// Implementation for accessing BillingConductor /// /// Amazon Web Services Billing Conductor is a fully managed service that you can use /// to customize a <a href="https://docs.aws.amazon.com/billingconductor/latest/userguide/understanding-eb.html#eb-other-definitions">pro /// forma</a> version of your billing data each month, to accurately show or chargeback /// your end customers. Amazon Web Services Billing Conductor doesn't change the way you're /// billed by Amazon Web Services each month by design. Instead, it provides you with /// a mechanism to configure, generate, and display rates to certain customers over a /// given billing period. You can also analyze the difference between the rates you apply /// to your accounting groupings relative to your actual rates from Amazon Web Services. /// As a result of your Amazon Web Services Billing Conductor configuration, the payer /// account can also see the custom rate applied on the billing details page of the <a /// href="https://console.aws.amazon.com/billing">Amazon Web Services Billing console</a>, /// or configure a cost and usage report per billing group. /// /// /// <para> /// This documentation shows how you can configure Amazon Web Services Billing Conductor /// using its API. For more information about using the <a href="https://console.aws.amazon.com/billingconductor/">Amazon /// Web Services Billing Conductor</a> user interface, see the <a href="https://docs.aws.amazon.com/billingconductor/latest/userguide/what-is-billingconductor.html"> /// Amazon Web Services Billing Conductor User Guide</a>. /// </para> /// </summary> public partial class AmazonBillingConductorClient : AmazonServiceClient, IAmazonBillingConductor { private static IServiceMetadata serviceMetadata = new AmazonBillingConductorMetadata(); #region Constructors /// <summary> /// Constructs AmazonBillingConductorClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// <code> /// &lt;?xml version="1.0" encoding="utf-8" ?&gt; /// &lt;configuration&gt; /// &lt;appSettings&gt; /// &lt;add key="AWSProfileName" value="AWS Default"/&gt; /// &lt;/appSettings&gt; /// &lt;/configuration&gt; /// </code> /// /// </summary> public AmazonBillingConductorClient() : base(FallbackCredentialsFactory.GetCredentials(), new AmazonBillingConductorConfig()) { } /// <summary> /// Constructs AmazonBillingConductorClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// <code> /// &lt;?xml version="1.0" encoding="utf-8" ?&gt; /// &lt;configuration&gt; /// &lt;appSettings&gt; /// &lt;add key="AWSProfileName" value="AWS Default"/&gt; /// &lt;/appSettings&gt; /// &lt;/configuration&gt; /// </code> /// /// </summary> /// <param name="region">The region to connect.</param> public AmazonBillingConductorClient(RegionEndpoint region) : base(FallbackCredentialsFactory.GetCredentials(), new AmazonBillingConductorConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonBillingConductorClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// <code> /// &lt;?xml version="1.0" encoding="utf-8" ?&gt; /// &lt;configuration&gt; /// &lt;appSettings&gt; /// &lt;add key="AWSProfileName" value="AWS Default"/&gt; /// &lt;/appSettings&gt; /// &lt;/configuration&gt; /// </code> /// /// </summary> /// <param name="config">The AmazonBillingConductorClient Configuration Object</param> public AmazonBillingConductorClient(AmazonBillingConductorConfig config) : base(FallbackCredentialsFactory.GetCredentials(), config) { } /// <summary> /// Constructs AmazonBillingConductorClient with AWS Credentials /// </summary> /// <param name="credentials">AWS Credentials</param> public AmazonBillingConductorClient(AWSCredentials credentials) : this(credentials, new AmazonBillingConductorConfig()) { } /// <summary> /// Constructs AmazonBillingConductorClient with AWS Credentials /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="region">The region to connect.</param> public AmazonBillingConductorClient(AWSCredentials credentials, RegionEndpoint region) : this(credentials, new AmazonBillingConductorConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonBillingConductorClient with AWS Credentials and an /// AmazonBillingConductorClient Configuration object. /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="clientConfig">The AmazonBillingConductorClient Configuration Object</param> public AmazonBillingConductorClient(AWSCredentials credentials, AmazonBillingConductorConfig clientConfig) : base(credentials, clientConfig) { } /// <summary> /// Constructs AmazonBillingConductorClient with AWS Access Key ID and AWS Secret Key /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> public AmazonBillingConductorClient(string awsAccessKeyId, string awsSecretAccessKey) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonBillingConductorConfig()) { } /// <summary> /// Constructs AmazonBillingConductorClient with AWS Access Key ID and AWS Secret Key /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="region">The region to connect.</param> public AmazonBillingConductorClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonBillingConductorConfig() {RegionEndpoint=region}) { } /// <summary> /// Constructs AmazonBillingConductorClient with AWS Access Key ID, AWS Secret Key and an /// AmazonBillingConductorClient Configuration object. /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="clientConfig">The AmazonBillingConductorClient Configuration Object</param> public AmazonBillingConductorClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonBillingConductorConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) { } /// <summary> /// Constructs AmazonBillingConductorClient with AWS Access Key ID and AWS Secret Key /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="awsSessionToken">AWS Session Token</param> public AmazonBillingConductorClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonBillingConductorConfig()) { } /// <summary> /// Constructs AmazonBillingConductorClient with AWS Access Key ID and AWS Secret Key /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="awsSessionToken">AWS Session Token</param> /// <param name="region">The region to connect.</param> public AmazonBillingConductorClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonBillingConductorConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonBillingConductorClient with AWS Access Key ID, AWS Secret Key and an /// AmazonBillingConductorClient Configuration object. /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="awsSessionToken">AWS Session Token</param> /// <param name="clientConfig">The AmazonBillingConductorClient Configuration Object</param> public AmazonBillingConductorClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonBillingConductorConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig) { } #endregion #if AWS_ASYNC_ENUMERABLES_API private IBillingConductorPaginatorFactory _paginators; /// <summary> /// Paginators for the service /// </summary> public IBillingConductorPaginatorFactory Paginators { get { if (this._paginators == null) { this._paginators = new BillingConductorPaginatorFactory(this); } return this._paginators; } } #endif #region Overrides /// <summary> /// Creates the signer for the service. /// </summary> protected override AbstractAWSSigner CreateSigner() { return new AWS4Signer(); } /// <summary> /// Customizes the runtime pipeline. /// </summary> /// <param name="pipeline">Runtime pipeline for the current client.</param> protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline) { pipeline.RemoveHandler<Amazon.Runtime.Internal.EndpointResolver>(); pipeline.AddHandlerAfter<Amazon.Runtime.Internal.Marshaller>(new AmazonBillingConductorEndpointResolver()); } /// <summary> /// Capture metadata for the service. /// </summary> protected override IServiceMetadata ServiceMetadata { get { return serviceMetadata; } } #endregion #region Dispose /// <summary> /// Disposes the service client. /// </summary> protected override void Dispose(bool disposing) { base.Dispose(disposing); } #endregion #region AssociateAccounts internal virtual AssociateAccountsResponse AssociateAccounts(AssociateAccountsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = AssociateAccountsRequestMarshaller.Instance; options.ResponseUnmarshaller = AssociateAccountsResponseUnmarshaller.Instance; return Invoke<AssociateAccountsResponse>(request, options); } /// <summary> /// Connects an array of account IDs in a consolidated billing family to a predefined /// billing group. The account IDs must be a part of the consolidated billing family during /// the current month, and not already associated with another billing group. The maximum /// number of accounts that can be associated in one call is 30. /// </summary> /// <param name="request">Container for the necessary parameters to execute the AssociateAccounts service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the AssociateAccounts service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ServiceLimitExceededException"> /// The request would cause a service limit to exceed. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/AssociateAccounts">REST API Reference for AssociateAccounts Operation</seealso> public virtual Task<AssociateAccountsResponse> AssociateAccountsAsync(AssociateAccountsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = AssociateAccountsRequestMarshaller.Instance; options.ResponseUnmarshaller = AssociateAccountsResponseUnmarshaller.Instance; return InvokeAsync<AssociateAccountsResponse>(request, options, cancellationToken); } #endregion #region AssociatePricingRules internal virtual AssociatePricingRulesResponse AssociatePricingRules(AssociatePricingRulesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = AssociatePricingRulesRequestMarshaller.Instance; options.ResponseUnmarshaller = AssociatePricingRulesResponseUnmarshaller.Instance; return Invoke<AssociatePricingRulesResponse>(request, options); } /// <summary> /// Connects an array of <code>PricingRuleArns</code> to a defined <code>PricingPlan</code>. /// The maximum number <code>PricingRuleArn</code> that can be associated in one call /// is 30. /// </summary> /// <param name="request">Container for the necessary parameters to execute the AssociatePricingRules service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the AssociatePricingRules service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ServiceLimitExceededException"> /// The request would cause a service limit to exceed. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/AssociatePricingRules">REST API Reference for AssociatePricingRules Operation</seealso> public virtual Task<AssociatePricingRulesResponse> AssociatePricingRulesAsync(AssociatePricingRulesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = AssociatePricingRulesRequestMarshaller.Instance; options.ResponseUnmarshaller = AssociatePricingRulesResponseUnmarshaller.Instance; return InvokeAsync<AssociatePricingRulesResponse>(request, options, cancellationToken); } #endregion #region BatchAssociateResourcesToCustomLineItem internal virtual BatchAssociateResourcesToCustomLineItemResponse BatchAssociateResourcesToCustomLineItem(BatchAssociateResourcesToCustomLineItemRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = BatchAssociateResourcesToCustomLineItemRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchAssociateResourcesToCustomLineItemResponseUnmarshaller.Instance; return Invoke<BatchAssociateResourcesToCustomLineItemResponse>(request, options); } /// <summary> /// Associates a batch of resources to a percentage custom line item. /// </summary> /// <param name="request">Container for the necessary parameters to execute the BatchAssociateResourcesToCustomLineItem service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the BatchAssociateResourcesToCustomLineItem service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ServiceLimitExceededException"> /// The request would cause a service limit to exceed. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/BatchAssociateResourcesToCustomLineItem">REST API Reference for BatchAssociateResourcesToCustomLineItem Operation</seealso> public virtual Task<BatchAssociateResourcesToCustomLineItemResponse> BatchAssociateResourcesToCustomLineItemAsync(BatchAssociateResourcesToCustomLineItemRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = BatchAssociateResourcesToCustomLineItemRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchAssociateResourcesToCustomLineItemResponseUnmarshaller.Instance; return InvokeAsync<BatchAssociateResourcesToCustomLineItemResponse>(request, options, cancellationToken); } #endregion #region BatchDisassociateResourcesFromCustomLineItem internal virtual BatchDisassociateResourcesFromCustomLineItemResponse BatchDisassociateResourcesFromCustomLineItem(BatchDisassociateResourcesFromCustomLineItemRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = BatchDisassociateResourcesFromCustomLineItemRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchDisassociateResourcesFromCustomLineItemResponseUnmarshaller.Instance; return Invoke<BatchDisassociateResourcesFromCustomLineItemResponse>(request, options); } /// <summary> /// Disassociates a batch of resources from a percentage custom line item. /// </summary> /// <param name="request">Container for the necessary parameters to execute the BatchDisassociateResourcesFromCustomLineItem service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the BatchDisassociateResourcesFromCustomLineItem service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/BatchDisassociateResourcesFromCustomLineItem">REST API Reference for BatchDisassociateResourcesFromCustomLineItem Operation</seealso> public virtual Task<BatchDisassociateResourcesFromCustomLineItemResponse> BatchDisassociateResourcesFromCustomLineItemAsync(BatchDisassociateResourcesFromCustomLineItemRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = BatchDisassociateResourcesFromCustomLineItemRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchDisassociateResourcesFromCustomLineItemResponseUnmarshaller.Instance; return InvokeAsync<BatchDisassociateResourcesFromCustomLineItemResponse>(request, options, cancellationToken); } #endregion #region CreateBillingGroup internal virtual CreateBillingGroupResponse CreateBillingGroup(CreateBillingGroupRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateBillingGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateBillingGroupResponseUnmarshaller.Instance; return Invoke<CreateBillingGroupResponse>(request, options); } /// <summary> /// Creates a billing group that resembles a consolidated billing family that Amazon /// Web Services charges, based off of the predefined pricing plan computation. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateBillingGroup service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreateBillingGroup service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ServiceLimitExceededException"> /// The request would cause a service limit to exceed. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/CreateBillingGroup">REST API Reference for CreateBillingGroup Operation</seealso> public virtual Task<CreateBillingGroupResponse> CreateBillingGroupAsync(CreateBillingGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateBillingGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateBillingGroupResponseUnmarshaller.Instance; return InvokeAsync<CreateBillingGroupResponse>(request, options, cancellationToken); } #endregion #region CreateCustomLineItem internal virtual CreateCustomLineItemResponse CreateCustomLineItem(CreateCustomLineItemRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateCustomLineItemRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateCustomLineItemResponseUnmarshaller.Instance; return Invoke<CreateCustomLineItemResponse>(request, options); } /// <summary> /// Creates a custom line item that can be used to create a one-time fixed charge that /// can be applied to a single billing group for the current or previous billing period. /// The one-time fixed charge is either a fee or discount. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateCustomLineItem service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreateCustomLineItem service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ServiceLimitExceededException"> /// The request would cause a service limit to exceed. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/CreateCustomLineItem">REST API Reference for CreateCustomLineItem Operation</seealso> public virtual Task<CreateCustomLineItemResponse> CreateCustomLineItemAsync(CreateCustomLineItemRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateCustomLineItemRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateCustomLineItemResponseUnmarshaller.Instance; return InvokeAsync<CreateCustomLineItemResponse>(request, options, cancellationToken); } #endregion #region CreatePricingPlan internal virtual CreatePricingPlanResponse CreatePricingPlan(CreatePricingPlanRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreatePricingPlanRequestMarshaller.Instance; options.ResponseUnmarshaller = CreatePricingPlanResponseUnmarshaller.Instance; return Invoke<CreatePricingPlanResponse>(request, options); } /// <summary> /// Creates a pricing plan that is used for computing Amazon Web Services charges for /// billing groups. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreatePricingPlan service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreatePricingPlan service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ServiceLimitExceededException"> /// The request would cause a service limit to exceed. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/CreatePricingPlan">REST API Reference for CreatePricingPlan Operation</seealso> public virtual Task<CreatePricingPlanResponse> CreatePricingPlanAsync(CreatePricingPlanRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreatePricingPlanRequestMarshaller.Instance; options.ResponseUnmarshaller = CreatePricingPlanResponseUnmarshaller.Instance; return InvokeAsync<CreatePricingPlanResponse>(request, options, cancellationToken); } #endregion #region CreatePricingRule internal virtual CreatePricingRuleResponse CreatePricingRule(CreatePricingRuleRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreatePricingRuleRequestMarshaller.Instance; options.ResponseUnmarshaller = CreatePricingRuleResponseUnmarshaller.Instance; return Invoke<CreatePricingRuleResponse>(request, options); } /// <summary> /// Creates a pricing rule can be associated to a pricing plan, or a set of pricing plans. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreatePricingRule service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreatePricingRule service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ServiceLimitExceededException"> /// The request would cause a service limit to exceed. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/CreatePricingRule">REST API Reference for CreatePricingRule Operation</seealso> public virtual Task<CreatePricingRuleResponse> CreatePricingRuleAsync(CreatePricingRuleRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreatePricingRuleRequestMarshaller.Instance; options.ResponseUnmarshaller = CreatePricingRuleResponseUnmarshaller.Instance; return InvokeAsync<CreatePricingRuleResponse>(request, options, cancellationToken); } #endregion #region DeleteBillingGroup internal virtual DeleteBillingGroupResponse DeleteBillingGroup(DeleteBillingGroupRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteBillingGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteBillingGroupResponseUnmarshaller.Instance; return Invoke<DeleteBillingGroupResponse>(request, options); } /// <summary> /// Deletes a billing group. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteBillingGroup service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteBillingGroup service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/DeleteBillingGroup">REST API Reference for DeleteBillingGroup Operation</seealso> public virtual Task<DeleteBillingGroupResponse> DeleteBillingGroupAsync(DeleteBillingGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteBillingGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteBillingGroupResponseUnmarshaller.Instance; return InvokeAsync<DeleteBillingGroupResponse>(request, options, cancellationToken); } #endregion #region DeleteCustomLineItem internal virtual DeleteCustomLineItemResponse DeleteCustomLineItem(DeleteCustomLineItemRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteCustomLineItemRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteCustomLineItemResponseUnmarshaller.Instance; return Invoke<DeleteCustomLineItemResponse>(request, options); } /// <summary> /// Deletes the custom line item identified by the given ARN in the current, or previous /// billing period. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteCustomLineItem service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteCustomLineItem service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/DeleteCustomLineItem">REST API Reference for DeleteCustomLineItem Operation</seealso> public virtual Task<DeleteCustomLineItemResponse> DeleteCustomLineItemAsync(DeleteCustomLineItemRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteCustomLineItemRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteCustomLineItemResponseUnmarshaller.Instance; return InvokeAsync<DeleteCustomLineItemResponse>(request, options, cancellationToken); } #endregion #region DeletePricingPlan internal virtual DeletePricingPlanResponse DeletePricingPlan(DeletePricingPlanRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeletePricingPlanRequestMarshaller.Instance; options.ResponseUnmarshaller = DeletePricingPlanResponseUnmarshaller.Instance; return Invoke<DeletePricingPlanResponse>(request, options); } /// <summary> /// Deletes a pricing plan. The pricing plan must not be associated with any billing groups /// to delete successfully. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeletePricingPlan service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeletePricingPlan service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/DeletePricingPlan">REST API Reference for DeletePricingPlan Operation</seealso> public virtual Task<DeletePricingPlanResponse> DeletePricingPlanAsync(DeletePricingPlanRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeletePricingPlanRequestMarshaller.Instance; options.ResponseUnmarshaller = DeletePricingPlanResponseUnmarshaller.Instance; return InvokeAsync<DeletePricingPlanResponse>(request, options, cancellationToken); } #endregion #region DeletePricingRule internal virtual DeletePricingRuleResponse DeletePricingRule(DeletePricingRuleRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeletePricingRuleRequestMarshaller.Instance; options.ResponseUnmarshaller = DeletePricingRuleResponseUnmarshaller.Instance; return Invoke<DeletePricingRuleResponse>(request, options); } /// <summary> /// Deletes the pricing rule that's identified by the input Amazon Resource Name (ARN). /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeletePricingRule service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeletePricingRule service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/DeletePricingRule">REST API Reference for DeletePricingRule Operation</seealso> public virtual Task<DeletePricingRuleResponse> DeletePricingRuleAsync(DeletePricingRuleRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeletePricingRuleRequestMarshaller.Instance; options.ResponseUnmarshaller = DeletePricingRuleResponseUnmarshaller.Instance; return InvokeAsync<DeletePricingRuleResponse>(request, options, cancellationToken); } #endregion #region DisassociateAccounts internal virtual DisassociateAccountsResponse DisassociateAccounts(DisassociateAccountsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DisassociateAccountsRequestMarshaller.Instance; options.ResponseUnmarshaller = DisassociateAccountsResponseUnmarshaller.Instance; return Invoke<DisassociateAccountsResponse>(request, options); } /// <summary> /// Removes the specified list of account IDs from the given billing group. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DisassociateAccounts service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DisassociateAccounts service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/DisassociateAccounts">REST API Reference for DisassociateAccounts Operation</seealso> public virtual Task<DisassociateAccountsResponse> DisassociateAccountsAsync(DisassociateAccountsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DisassociateAccountsRequestMarshaller.Instance; options.ResponseUnmarshaller = DisassociateAccountsResponseUnmarshaller.Instance; return InvokeAsync<DisassociateAccountsResponse>(request, options, cancellationToken); } #endregion #region DisassociatePricingRules internal virtual DisassociatePricingRulesResponse DisassociatePricingRules(DisassociatePricingRulesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DisassociatePricingRulesRequestMarshaller.Instance; options.ResponseUnmarshaller = DisassociatePricingRulesResponseUnmarshaller.Instance; return Invoke<DisassociatePricingRulesResponse>(request, options); } /// <summary> /// Disassociates a list of pricing rules from a pricing plan. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DisassociatePricingRules service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DisassociatePricingRules service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/DisassociatePricingRules">REST API Reference for DisassociatePricingRules Operation</seealso> public virtual Task<DisassociatePricingRulesResponse> DisassociatePricingRulesAsync(DisassociatePricingRulesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DisassociatePricingRulesRequestMarshaller.Instance; options.ResponseUnmarshaller = DisassociatePricingRulesResponseUnmarshaller.Instance; return InvokeAsync<DisassociatePricingRulesResponse>(request, options, cancellationToken); } #endregion #region ListAccountAssociations internal virtual ListAccountAssociationsResponse ListAccountAssociations(ListAccountAssociationsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListAccountAssociationsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListAccountAssociationsResponseUnmarshaller.Instance; return Invoke<ListAccountAssociationsResponse>(request, options); } /// <summary> /// This is a paginated call to list linked accounts that are linked to the payer account /// for the specified time period. If no information is provided, the current billing /// period is used. The response will optionally include the billing group that's associated /// with the linked account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListAccountAssociations service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListAccountAssociations service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListAccountAssociations">REST API Reference for ListAccountAssociations Operation</seealso> public virtual Task<ListAccountAssociationsResponse> ListAccountAssociationsAsync(ListAccountAssociationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListAccountAssociationsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListAccountAssociationsResponseUnmarshaller.Instance; return InvokeAsync<ListAccountAssociationsResponse>(request, options, cancellationToken); } #endregion #region ListBillingGroupCostReports internal virtual ListBillingGroupCostReportsResponse ListBillingGroupCostReports(ListBillingGroupCostReportsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListBillingGroupCostReportsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListBillingGroupCostReportsResponseUnmarshaller.Instance; return Invoke<ListBillingGroupCostReportsResponse>(request, options); } /// <summary> /// A paginated call to retrieve a summary report of actual Amazon Web Services charges /// and the calculated Amazon Web Services charges based on the associated pricing plan /// of a billing group. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListBillingGroupCostReports service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListBillingGroupCostReports service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListBillingGroupCostReports">REST API Reference for ListBillingGroupCostReports Operation</seealso> public virtual Task<ListBillingGroupCostReportsResponse> ListBillingGroupCostReportsAsync(ListBillingGroupCostReportsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListBillingGroupCostReportsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListBillingGroupCostReportsResponseUnmarshaller.Instance; return InvokeAsync<ListBillingGroupCostReportsResponse>(request, options, cancellationToken); } #endregion #region ListBillingGroups internal virtual ListBillingGroupsResponse ListBillingGroups(ListBillingGroupsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListBillingGroupsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListBillingGroupsResponseUnmarshaller.Instance; return Invoke<ListBillingGroupsResponse>(request, options); } /// <summary> /// A paginated call to retrieve a list of billing groups for the given billing period. /// If you don't provide a billing group, the current billing period is used. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListBillingGroups service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListBillingGroups service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListBillingGroups">REST API Reference for ListBillingGroups Operation</seealso> public virtual Task<ListBillingGroupsResponse> ListBillingGroupsAsync(ListBillingGroupsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListBillingGroupsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListBillingGroupsResponseUnmarshaller.Instance; return InvokeAsync<ListBillingGroupsResponse>(request, options, cancellationToken); } #endregion #region ListCustomLineItems internal virtual ListCustomLineItemsResponse ListCustomLineItems(ListCustomLineItemsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListCustomLineItemsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListCustomLineItemsResponseUnmarshaller.Instance; return Invoke<ListCustomLineItemsResponse>(request, options); } /// <summary> /// A paginated call to get a list of all custom line items (FFLIs) for the given billing /// period. If you don't provide a billing period, the current billing period is used. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListCustomLineItems service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListCustomLineItems service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListCustomLineItems">REST API Reference for ListCustomLineItems Operation</seealso> public virtual Task<ListCustomLineItemsResponse> ListCustomLineItemsAsync(ListCustomLineItemsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListCustomLineItemsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListCustomLineItemsResponseUnmarshaller.Instance; return InvokeAsync<ListCustomLineItemsResponse>(request, options, cancellationToken); } #endregion #region ListCustomLineItemVersions internal virtual ListCustomLineItemVersionsResponse ListCustomLineItemVersions(ListCustomLineItemVersionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListCustomLineItemVersionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListCustomLineItemVersionsResponseUnmarshaller.Instance; return Invoke<ListCustomLineItemVersionsResponse>(request, options); } /// <summary> /// A paginated call to get a list of all custom line item versions. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListCustomLineItemVersions service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListCustomLineItemVersions service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListCustomLineItemVersions">REST API Reference for ListCustomLineItemVersions Operation</seealso> public virtual Task<ListCustomLineItemVersionsResponse> ListCustomLineItemVersionsAsync(ListCustomLineItemVersionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListCustomLineItemVersionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListCustomLineItemVersionsResponseUnmarshaller.Instance; return InvokeAsync<ListCustomLineItemVersionsResponse>(request, options, cancellationToken); } #endregion #region ListPricingPlans internal virtual ListPricingPlansResponse ListPricingPlans(ListPricingPlansRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListPricingPlansRequestMarshaller.Instance; options.ResponseUnmarshaller = ListPricingPlansResponseUnmarshaller.Instance; return Invoke<ListPricingPlansResponse>(request, options); } /// <summary> /// A paginated call to get pricing plans for the given billing period. If you don't provide /// a billing period, the current billing period is used. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListPricingPlans service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListPricingPlans service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListPricingPlans">REST API Reference for ListPricingPlans Operation</seealso> public virtual Task<ListPricingPlansResponse> ListPricingPlansAsync(ListPricingPlansRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListPricingPlansRequestMarshaller.Instance; options.ResponseUnmarshaller = ListPricingPlansResponseUnmarshaller.Instance; return InvokeAsync<ListPricingPlansResponse>(request, options, cancellationToken); } #endregion #region ListPricingPlansAssociatedWithPricingRule internal virtual ListPricingPlansAssociatedWithPricingRuleResponse ListPricingPlansAssociatedWithPricingRule(ListPricingPlansAssociatedWithPricingRuleRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListPricingPlansAssociatedWithPricingRuleRequestMarshaller.Instance; options.ResponseUnmarshaller = ListPricingPlansAssociatedWithPricingRuleResponseUnmarshaller.Instance; return Invoke<ListPricingPlansAssociatedWithPricingRuleResponse>(request, options); } /// <summary> /// A list of the pricing plans that are associated with a pricing rule. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListPricingPlansAssociatedWithPricingRule service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListPricingPlansAssociatedWithPricingRule service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListPricingPlansAssociatedWithPricingRule">REST API Reference for ListPricingPlansAssociatedWithPricingRule Operation</seealso> public virtual Task<ListPricingPlansAssociatedWithPricingRuleResponse> ListPricingPlansAssociatedWithPricingRuleAsync(ListPricingPlansAssociatedWithPricingRuleRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListPricingPlansAssociatedWithPricingRuleRequestMarshaller.Instance; options.ResponseUnmarshaller = ListPricingPlansAssociatedWithPricingRuleResponseUnmarshaller.Instance; return InvokeAsync<ListPricingPlansAssociatedWithPricingRuleResponse>(request, options, cancellationToken); } #endregion #region ListPricingRules internal virtual ListPricingRulesResponse ListPricingRules(ListPricingRulesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListPricingRulesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListPricingRulesResponseUnmarshaller.Instance; return Invoke<ListPricingRulesResponse>(request, options); } /// <summary> /// Describes a pricing rule that can be associated to a pricing plan, or set of pricing /// plans. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListPricingRules service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListPricingRules service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListPricingRules">REST API Reference for ListPricingRules Operation</seealso> public virtual Task<ListPricingRulesResponse> ListPricingRulesAsync(ListPricingRulesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListPricingRulesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListPricingRulesResponseUnmarshaller.Instance; return InvokeAsync<ListPricingRulesResponse>(request, options, cancellationToken); } #endregion #region ListPricingRulesAssociatedToPricingPlan internal virtual ListPricingRulesAssociatedToPricingPlanResponse ListPricingRulesAssociatedToPricingPlan(ListPricingRulesAssociatedToPricingPlanRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListPricingRulesAssociatedToPricingPlanRequestMarshaller.Instance; options.ResponseUnmarshaller = ListPricingRulesAssociatedToPricingPlanResponseUnmarshaller.Instance; return Invoke<ListPricingRulesAssociatedToPricingPlanResponse>(request, options); } /// <summary> /// Lists the pricing rules that are associated with a pricing plan. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListPricingRulesAssociatedToPricingPlan service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListPricingRulesAssociatedToPricingPlan service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListPricingRulesAssociatedToPricingPlan">REST API Reference for ListPricingRulesAssociatedToPricingPlan Operation</seealso> public virtual Task<ListPricingRulesAssociatedToPricingPlanResponse> ListPricingRulesAssociatedToPricingPlanAsync(ListPricingRulesAssociatedToPricingPlanRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListPricingRulesAssociatedToPricingPlanRequestMarshaller.Instance; options.ResponseUnmarshaller = ListPricingRulesAssociatedToPricingPlanResponseUnmarshaller.Instance; return InvokeAsync<ListPricingRulesAssociatedToPricingPlanResponse>(request, options, cancellationToken); } #endregion #region ListResourcesAssociatedToCustomLineItem internal virtual ListResourcesAssociatedToCustomLineItemResponse ListResourcesAssociatedToCustomLineItem(ListResourcesAssociatedToCustomLineItemRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListResourcesAssociatedToCustomLineItemRequestMarshaller.Instance; options.ResponseUnmarshaller = ListResourcesAssociatedToCustomLineItemResponseUnmarshaller.Instance; return Invoke<ListResourcesAssociatedToCustomLineItemResponse>(request, options); } /// <summary> /// List the resources that are associated to a custom line item. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListResourcesAssociatedToCustomLineItem service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListResourcesAssociatedToCustomLineItem service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListResourcesAssociatedToCustomLineItem">REST API Reference for ListResourcesAssociatedToCustomLineItem Operation</seealso> public virtual Task<ListResourcesAssociatedToCustomLineItemResponse> ListResourcesAssociatedToCustomLineItemAsync(ListResourcesAssociatedToCustomLineItemRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListResourcesAssociatedToCustomLineItemRequestMarshaller.Instance; options.ResponseUnmarshaller = ListResourcesAssociatedToCustomLineItemResponseUnmarshaller.Instance; return InvokeAsync<ListResourcesAssociatedToCustomLineItemResponse>(request, options, cancellationToken); } #endregion #region ListTagsForResource internal virtual ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance; return Invoke<ListTagsForResourceResponse>(request, options); } /// <summary> /// A list the tags for a resource. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListTagsForResource service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListTagsForResource service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso> public virtual Task<ListTagsForResourceResponse> ListTagsForResourceAsync(ListTagsForResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance; return InvokeAsync<ListTagsForResourceResponse>(request, options, cancellationToken); } #endregion #region TagResource internal virtual TagResourceResponse TagResource(TagResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = TagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance; return Invoke<TagResourceResponse>(request, options); } /// <summary> /// Associates the specified tags to a resource with the specified <code>resourceArn</code>. /// If existing tags on a resource are not specified in the request parameters, they are /// not changed. /// </summary> /// <param name="request">Container for the necessary parameters to execute the TagResource service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the TagResource service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/TagResource">REST API Reference for TagResource Operation</seealso> public virtual Task<TagResourceResponse> TagResourceAsync(TagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = TagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance; return InvokeAsync<TagResourceResponse>(request, options, cancellationToken); } #endregion #region UntagResource internal virtual UntagResourceResponse UntagResource(UntagResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UntagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance; return Invoke<UntagResourceResponse>(request, options); } /// <summary> /// Deletes specified tags from a resource. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UntagResource service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UntagResource service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/UntagResource">REST API Reference for UntagResource Operation</seealso> public virtual Task<UntagResourceResponse> UntagResourceAsync(UntagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UntagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance; return InvokeAsync<UntagResourceResponse>(request, options, cancellationToken); } #endregion #region UpdateBillingGroup internal virtual UpdateBillingGroupResponse UpdateBillingGroup(UpdateBillingGroupRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateBillingGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateBillingGroupResponseUnmarshaller.Instance; return Invoke<UpdateBillingGroupResponse>(request, options); } /// <summary> /// This updates an existing billing group. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateBillingGroup service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdateBillingGroup service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/UpdateBillingGroup">REST API Reference for UpdateBillingGroup Operation</seealso> public virtual Task<UpdateBillingGroupResponse> UpdateBillingGroupAsync(UpdateBillingGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateBillingGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateBillingGroupResponseUnmarshaller.Instance; return InvokeAsync<UpdateBillingGroupResponse>(request, options, cancellationToken); } #endregion #region UpdateCustomLineItem internal virtual UpdateCustomLineItemResponse UpdateCustomLineItem(UpdateCustomLineItemRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateCustomLineItemRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateCustomLineItemResponseUnmarshaller.Instance; return Invoke<UpdateCustomLineItemResponse>(request, options); } /// <summary> /// Update an existing custom line item in the current or previous billing period. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateCustomLineItem service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdateCustomLineItem service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/UpdateCustomLineItem">REST API Reference for UpdateCustomLineItem Operation</seealso> public virtual Task<UpdateCustomLineItemResponse> UpdateCustomLineItemAsync(UpdateCustomLineItemRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateCustomLineItemRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateCustomLineItemResponseUnmarshaller.Instance; return InvokeAsync<UpdateCustomLineItemResponse>(request, options, cancellationToken); } #endregion #region UpdatePricingPlan internal virtual UpdatePricingPlanResponse UpdatePricingPlan(UpdatePricingPlanRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdatePricingPlanRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdatePricingPlanResponseUnmarshaller.Instance; return Invoke<UpdatePricingPlanResponse>(request, options); } /// <summary> /// This updates an existing pricing plan. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdatePricingPlan service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdatePricingPlan service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/UpdatePricingPlan">REST API Reference for UpdatePricingPlan Operation</seealso> public virtual Task<UpdatePricingPlanResponse> UpdatePricingPlanAsync(UpdatePricingPlanRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdatePricingPlanRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdatePricingPlanResponseUnmarshaller.Instance; return InvokeAsync<UpdatePricingPlanResponse>(request, options, cancellationToken); } #endregion #region UpdatePricingRule internal virtual UpdatePricingRuleResponse UpdatePricingRule(UpdatePricingRuleRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdatePricingRuleRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdatePricingRuleResponseUnmarshaller.Instance; return Invoke<UpdatePricingRuleResponse>(request, options); } /// <summary> /// Updates an existing pricing rule. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdatePricingRule service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdatePricingRule service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/UpdatePricingRule">REST API Reference for UpdatePricingRule Operation</seealso> public virtual Task<UpdatePricingRuleResponse> UpdatePricingRuleAsync(UpdatePricingRuleRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdatePricingRuleRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdatePricingRuleResponseUnmarshaller.Instance; return InvokeAsync<UpdatePricingRuleResponse>(request, options, cancellationToken); } #endregion } }
1,870
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using System.Threading; using System.Threading.Tasks; using System.Collections.Generic; using Amazon.Runtime; using Amazon.BillingConductor.Model; namespace Amazon.BillingConductor { /// <summary> /// Interface for accessing BillingConductor /// /// Amazon Web Services Billing Conductor is a fully managed service that you can use /// to customize a <a href="https://docs.aws.amazon.com/billingconductor/latest/userguide/understanding-eb.html#eb-other-definitions">pro /// forma</a> version of your billing data each month, to accurately show or chargeback /// your end customers. Amazon Web Services Billing Conductor doesn't change the way you're /// billed by Amazon Web Services each month by design. Instead, it provides you with /// a mechanism to configure, generate, and display rates to certain customers over a /// given billing period. You can also analyze the difference between the rates you apply /// to your accounting groupings relative to your actual rates from Amazon Web Services. /// As a result of your Amazon Web Services Billing Conductor configuration, the payer /// account can also see the custom rate applied on the billing details page of the <a /// href="https://console.aws.amazon.com/billing">Amazon Web Services Billing console</a>, /// or configure a cost and usage report per billing group. /// /// /// <para> /// This documentation shows how you can configure Amazon Web Services Billing Conductor /// using its API. For more information about using the <a href="https://console.aws.amazon.com/billingconductor/">Amazon /// Web Services Billing Conductor</a> user interface, see the <a href="https://docs.aws.amazon.com/billingconductor/latest/userguide/what-is-billingconductor.html"> /// Amazon Web Services Billing Conductor User Guide</a>. /// </para> /// </summary> public partial interface IAmazonBillingConductor : IAmazonService, IDisposable { #if AWS_ASYNC_ENUMERABLES_API /// <summary> /// Paginators for the service /// </summary> IBillingConductorPaginatorFactory Paginators { get; } #endif #region AssociateAccounts /// <summary> /// Connects an array of account IDs in a consolidated billing family to a predefined /// billing group. The account IDs must be a part of the consolidated billing family during /// the current month, and not already associated with another billing group. The maximum /// number of accounts that can be associated in one call is 30. /// </summary> /// <param name="request">Container for the necessary parameters to execute the AssociateAccounts service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the AssociateAccounts service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ServiceLimitExceededException"> /// The request would cause a service limit to exceed. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/AssociateAccounts">REST API Reference for AssociateAccounts Operation</seealso> Task<AssociateAccountsResponse> AssociateAccountsAsync(AssociateAccountsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region AssociatePricingRules /// <summary> /// Connects an array of <code>PricingRuleArns</code> to a defined <code>PricingPlan</code>. /// The maximum number <code>PricingRuleArn</code> that can be associated in one call /// is 30. /// </summary> /// <param name="request">Container for the necessary parameters to execute the AssociatePricingRules service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the AssociatePricingRules service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ServiceLimitExceededException"> /// The request would cause a service limit to exceed. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/AssociatePricingRules">REST API Reference for AssociatePricingRules Operation</seealso> Task<AssociatePricingRulesResponse> AssociatePricingRulesAsync(AssociatePricingRulesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region BatchAssociateResourcesToCustomLineItem /// <summary> /// Associates a batch of resources to a percentage custom line item. /// </summary> /// <param name="request">Container for the necessary parameters to execute the BatchAssociateResourcesToCustomLineItem service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the BatchAssociateResourcesToCustomLineItem service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ServiceLimitExceededException"> /// The request would cause a service limit to exceed. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/BatchAssociateResourcesToCustomLineItem">REST API Reference for BatchAssociateResourcesToCustomLineItem Operation</seealso> Task<BatchAssociateResourcesToCustomLineItemResponse> BatchAssociateResourcesToCustomLineItemAsync(BatchAssociateResourcesToCustomLineItemRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region BatchDisassociateResourcesFromCustomLineItem /// <summary> /// Disassociates a batch of resources from a percentage custom line item. /// </summary> /// <param name="request">Container for the necessary parameters to execute the BatchDisassociateResourcesFromCustomLineItem service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the BatchDisassociateResourcesFromCustomLineItem service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/BatchDisassociateResourcesFromCustomLineItem">REST API Reference for BatchDisassociateResourcesFromCustomLineItem Operation</seealso> Task<BatchDisassociateResourcesFromCustomLineItemResponse> BatchDisassociateResourcesFromCustomLineItemAsync(BatchDisassociateResourcesFromCustomLineItemRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region CreateBillingGroup /// <summary> /// Creates a billing group that resembles a consolidated billing family that Amazon /// Web Services charges, based off of the predefined pricing plan computation. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateBillingGroup service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreateBillingGroup service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ServiceLimitExceededException"> /// The request would cause a service limit to exceed. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/CreateBillingGroup">REST API Reference for CreateBillingGroup Operation</seealso> Task<CreateBillingGroupResponse> CreateBillingGroupAsync(CreateBillingGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region CreateCustomLineItem /// <summary> /// Creates a custom line item that can be used to create a one-time fixed charge that /// can be applied to a single billing group for the current or previous billing period. /// The one-time fixed charge is either a fee or discount. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateCustomLineItem service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreateCustomLineItem service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ServiceLimitExceededException"> /// The request would cause a service limit to exceed. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/CreateCustomLineItem">REST API Reference for CreateCustomLineItem Operation</seealso> Task<CreateCustomLineItemResponse> CreateCustomLineItemAsync(CreateCustomLineItemRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region CreatePricingPlan /// <summary> /// Creates a pricing plan that is used for computing Amazon Web Services charges for /// billing groups. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreatePricingPlan service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreatePricingPlan service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ServiceLimitExceededException"> /// The request would cause a service limit to exceed. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/CreatePricingPlan">REST API Reference for CreatePricingPlan Operation</seealso> Task<CreatePricingPlanResponse> CreatePricingPlanAsync(CreatePricingPlanRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region CreatePricingRule /// <summary> /// Creates a pricing rule can be associated to a pricing plan, or a set of pricing plans. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreatePricingRule service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreatePricingRule service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ServiceLimitExceededException"> /// The request would cause a service limit to exceed. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/CreatePricingRule">REST API Reference for CreatePricingRule Operation</seealso> Task<CreatePricingRuleResponse> CreatePricingRuleAsync(CreatePricingRuleRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeleteBillingGroup /// <summary> /// Deletes a billing group. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteBillingGroup service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteBillingGroup service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/DeleteBillingGroup">REST API Reference for DeleteBillingGroup Operation</seealso> Task<DeleteBillingGroupResponse> DeleteBillingGroupAsync(DeleteBillingGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeleteCustomLineItem /// <summary> /// Deletes the custom line item identified by the given ARN in the current, or previous /// billing period. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteCustomLineItem service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteCustomLineItem service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/DeleteCustomLineItem">REST API Reference for DeleteCustomLineItem Operation</seealso> Task<DeleteCustomLineItemResponse> DeleteCustomLineItemAsync(DeleteCustomLineItemRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeletePricingPlan /// <summary> /// Deletes a pricing plan. The pricing plan must not be associated with any billing groups /// to delete successfully. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeletePricingPlan service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeletePricingPlan service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/DeletePricingPlan">REST API Reference for DeletePricingPlan Operation</seealso> Task<DeletePricingPlanResponse> DeletePricingPlanAsync(DeletePricingPlanRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeletePricingRule /// <summary> /// Deletes the pricing rule that's identified by the input Amazon Resource Name (ARN). /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeletePricingRule service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeletePricingRule service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/DeletePricingRule">REST API Reference for DeletePricingRule Operation</seealso> Task<DeletePricingRuleResponse> DeletePricingRuleAsync(DeletePricingRuleRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DisassociateAccounts /// <summary> /// Removes the specified list of account IDs from the given billing group. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DisassociateAccounts service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DisassociateAccounts service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/DisassociateAccounts">REST API Reference for DisassociateAccounts Operation</seealso> Task<DisassociateAccountsResponse> DisassociateAccountsAsync(DisassociateAccountsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DisassociatePricingRules /// <summary> /// Disassociates a list of pricing rules from a pricing plan. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DisassociatePricingRules service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DisassociatePricingRules service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/DisassociatePricingRules">REST API Reference for DisassociatePricingRules Operation</seealso> Task<DisassociatePricingRulesResponse> DisassociatePricingRulesAsync(DisassociatePricingRulesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListAccountAssociations /// <summary> /// This is a paginated call to list linked accounts that are linked to the payer account /// for the specified time period. If no information is provided, the current billing /// period is used. The response will optionally include the billing group that's associated /// with the linked account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListAccountAssociations service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListAccountAssociations service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListAccountAssociations">REST API Reference for ListAccountAssociations Operation</seealso> Task<ListAccountAssociationsResponse> ListAccountAssociationsAsync(ListAccountAssociationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListBillingGroupCostReports /// <summary> /// A paginated call to retrieve a summary report of actual Amazon Web Services charges /// and the calculated Amazon Web Services charges based on the associated pricing plan /// of a billing group. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListBillingGroupCostReports service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListBillingGroupCostReports service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListBillingGroupCostReports">REST API Reference for ListBillingGroupCostReports Operation</seealso> Task<ListBillingGroupCostReportsResponse> ListBillingGroupCostReportsAsync(ListBillingGroupCostReportsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListBillingGroups /// <summary> /// A paginated call to retrieve a list of billing groups for the given billing period. /// If you don't provide a billing group, the current billing period is used. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListBillingGroups service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListBillingGroups service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListBillingGroups">REST API Reference for ListBillingGroups Operation</seealso> Task<ListBillingGroupsResponse> ListBillingGroupsAsync(ListBillingGroupsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListCustomLineItems /// <summary> /// A paginated call to get a list of all custom line items (FFLIs) for the given billing /// period. If you don't provide a billing period, the current billing period is used. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListCustomLineItems service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListCustomLineItems service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListCustomLineItems">REST API Reference for ListCustomLineItems Operation</seealso> Task<ListCustomLineItemsResponse> ListCustomLineItemsAsync(ListCustomLineItemsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListCustomLineItemVersions /// <summary> /// A paginated call to get a list of all custom line item versions. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListCustomLineItemVersions service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListCustomLineItemVersions service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListCustomLineItemVersions">REST API Reference for ListCustomLineItemVersions Operation</seealso> Task<ListCustomLineItemVersionsResponse> ListCustomLineItemVersionsAsync(ListCustomLineItemVersionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListPricingPlans /// <summary> /// A paginated call to get pricing plans for the given billing period. If you don't provide /// a billing period, the current billing period is used. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListPricingPlans service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListPricingPlans service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListPricingPlans">REST API Reference for ListPricingPlans Operation</seealso> Task<ListPricingPlansResponse> ListPricingPlansAsync(ListPricingPlansRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListPricingPlansAssociatedWithPricingRule /// <summary> /// A list of the pricing plans that are associated with a pricing rule. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListPricingPlansAssociatedWithPricingRule service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListPricingPlansAssociatedWithPricingRule service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListPricingPlansAssociatedWithPricingRule">REST API Reference for ListPricingPlansAssociatedWithPricingRule Operation</seealso> Task<ListPricingPlansAssociatedWithPricingRuleResponse> ListPricingPlansAssociatedWithPricingRuleAsync(ListPricingPlansAssociatedWithPricingRuleRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListPricingRules /// <summary> /// Describes a pricing rule that can be associated to a pricing plan, or set of pricing /// plans. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListPricingRules service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListPricingRules service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListPricingRules">REST API Reference for ListPricingRules Operation</seealso> Task<ListPricingRulesResponse> ListPricingRulesAsync(ListPricingRulesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListPricingRulesAssociatedToPricingPlan /// <summary> /// Lists the pricing rules that are associated with a pricing plan. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListPricingRulesAssociatedToPricingPlan service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListPricingRulesAssociatedToPricingPlan service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListPricingRulesAssociatedToPricingPlan">REST API Reference for ListPricingRulesAssociatedToPricingPlan Operation</seealso> Task<ListPricingRulesAssociatedToPricingPlanResponse> ListPricingRulesAssociatedToPricingPlanAsync(ListPricingRulesAssociatedToPricingPlanRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListResourcesAssociatedToCustomLineItem /// <summary> /// List the resources that are associated to a custom line item. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListResourcesAssociatedToCustomLineItem service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListResourcesAssociatedToCustomLineItem service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListResourcesAssociatedToCustomLineItem">REST API Reference for ListResourcesAssociatedToCustomLineItem Operation</seealso> Task<ListResourcesAssociatedToCustomLineItemResponse> ListResourcesAssociatedToCustomLineItemAsync(ListResourcesAssociatedToCustomLineItemRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListTagsForResource /// <summary> /// A list the tags for a resource. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListTagsForResource service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListTagsForResource service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso> Task<ListTagsForResourceResponse> ListTagsForResourceAsync(ListTagsForResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region TagResource /// <summary> /// Associates the specified tags to a resource with the specified <code>resourceArn</code>. /// If existing tags on a resource are not specified in the request parameters, they are /// not changed. /// </summary> /// <param name="request">Container for the necessary parameters to execute the TagResource service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the TagResource service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/TagResource">REST API Reference for TagResource Operation</seealso> Task<TagResourceResponse> TagResourceAsync(TagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UntagResource /// <summary> /// Deletes specified tags from a resource. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UntagResource service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UntagResource service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/UntagResource">REST API Reference for UntagResource Operation</seealso> Task<UntagResourceResponse> UntagResourceAsync(UntagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UpdateBillingGroup /// <summary> /// This updates an existing billing group. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateBillingGroup service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdateBillingGroup service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/UpdateBillingGroup">REST API Reference for UpdateBillingGroup Operation</seealso> Task<UpdateBillingGroupResponse> UpdateBillingGroupAsync(UpdateBillingGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UpdateCustomLineItem /// <summary> /// Update an existing custom line item in the current or previous billing period. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateCustomLineItem service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdateCustomLineItem service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/UpdateCustomLineItem">REST API Reference for UpdateCustomLineItem Operation</seealso> Task<UpdateCustomLineItemResponse> UpdateCustomLineItemAsync(UpdateCustomLineItemRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UpdatePricingPlan /// <summary> /// This updates an existing pricing plan. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdatePricingPlan service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdatePricingPlan service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/UpdatePricingPlan">REST API Reference for UpdatePricingPlan Operation</seealso> Task<UpdatePricingPlanResponse> UpdatePricingPlanAsync(UpdatePricingPlanRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UpdatePricingRule /// <summary> /// Updates an existing pricing rule. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdatePricingRule service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdatePricingRule service method, as returned by BillingConductor.</returns> /// <exception cref="Amazon.BillingConductor.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ConflictException"> /// You can cause an inconsistent state by updating or deleting a resource. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.InternalServerException"> /// An unexpected error occurred while processing a request. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ResourceNotFoundException"> /// The request references a resource that doesn't exist. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ThrottlingException"> /// The request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.BillingConductor.Model.ValidationException"> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/billingconductor-2021-07-30/UpdatePricingRule">REST API Reference for UpdatePricingRule Operation</seealso> Task<UpdatePricingRuleResponse> UpdatePricingRuleAsync(UpdatePricingRuleRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion } }
1,149
aws-sdk-net
aws
C#
using System; using System.Reflection; using System.Runtime.InteropServices; using System.Runtime.CompilerServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("AWSSDK.BillingConductor")] #if BCL35 [assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (3.5) - AWSBillingConductor. This is the initial SDK release for AWS Billing Conductor. The AWS Billing Conductor is a customizable billing service, allowing you to customize your billing data to match your desired business structure.")] #elif BCL45 [assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (4.5) - AWSBillingConductor. This is the initial SDK release for AWS Billing Conductor. The AWS Billing Conductor is a customizable billing service, allowing you to customize your billing data to match your desired business structure.")] #elif NETSTANDARD20 [assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (NetStandard 2.0) - AWSBillingConductor. This is the initial SDK release for AWS Billing Conductor. The AWS Billing Conductor is a customizable billing service, allowing you to customize your billing data to match your desired business structure.")] #elif NETCOREAPP3_1 [assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (.NET Core 3.1) - AWSBillingConductor. This is the initial SDK release for AWS Billing Conductor. The AWS Billing Conductor is a customizable billing service, allowing you to customize your billing data to match your desired business structure.")] #else #error Unknown platform constant - unable to set correct AssemblyDescription #endif [assembly: AssemblyConfiguration("")] [assembly: AssemblyProduct("Amazon Web Services SDK for .NET")] [assembly: AssemblyCompany("Amazon.com, Inc")] [assembly: AssemblyCopyright("Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] // Setting ComVisible to false makes the types in this assembly not visible // to COM components. If you need to access a type in this assembly from // COM, set the ComVisible attribute to true on that type. [assembly: ComVisible(false)] // Version information for an assembly consists of the following four values: // // Major Version // Minor Version // Build Number // Revision // // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("3.3")] [assembly: AssemblyFileVersion("3.7.105.53")] [assembly: System.CLSCompliant(true)] #if BCL [assembly: System.Security.AllowPartiallyTrustedCallers] #endif
51
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the braket-2019-09-01.normal.json service model. */ using System; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Util.Internal; using Amazon.Braket.Internal; namespace Amazon.Braket { /// <summary> /// Configuration for accessing Amazon Braket service /// </summary> [AWSSignerType("v4")] public partial class AmazonBraketConfig : ClientConfig { private static readonly string UserAgentString = InternalSDKUtils.BuildUserAgentString("3.7.100.147"); private string _userAgent = UserAgentString; /// <summary> /// Default constructor /// </summary> public AmazonBraketConfig() : base(new Amazon.Runtime.Internal.DefaultConfigurationProvider(AmazonBraketDefaultConfiguration.GetAllConfigurations())) { this.AuthenticationServiceName = "braket"; this.EndpointProvider = new AmazonBraketEndpointProvider(); } /// <summary> /// The constant used to lookup in the region hash the endpoint. /// </summary> public override string RegionEndpointServiceName { get { return "braket"; } } /// <summary> /// Gets the ServiceVersion property. /// </summary> public override string ServiceVersion { get { return "2019-09-01"; } } /// <summary> /// Gets the value of UserAgent property. /// </summary> public override string UserAgent { get { return _userAgent; } } } }
83
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Collections.ObjectModel; using Amazon.Runtime; namespace Amazon.Braket { /// <summary> /// Configuration for accessing Amazon Braket service /// </summary> public static class AmazonBraketDefaultConfiguration { /// <summary> /// Collection of all <see cref="DefaultConfiguration"/>s supported by /// Braket /// </summary> public static ReadOnlyCollection<IDefaultConfiguration> GetAllConfigurations() { return new ReadOnlyCollection<IDefaultConfiguration>(new List<IDefaultConfiguration> { Standard, InRegion, CrossRegion, Mobile, Auto, Legacy }); } /// <summary> /// <p>The STANDARD mode provides the latest recommended default values that should be safe to run in most scenarios</p><p>Note that the default values vended from this mode might change as best practices may evolve. As a result, it is encouraged to perform tests when upgrading the SDK</p> /// </summary> public static IDefaultConfiguration Standard {get;} = new DefaultConfiguration { Name = DefaultConfigurationMode.Standard, RetryMode = RequestRetryMode.Standard, StsRegionalEndpoints = StsRegionalEndpointsValue.Regional, S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Regional, // 0:00:03.1 ConnectTimeout = TimeSpan.FromMilliseconds(3100L), // 0:00:03.1 TlsNegotiationTimeout = TimeSpan.FromMilliseconds(3100L), TimeToFirstByteTimeout = null, HttpRequestTimeout = null }; /// <summary> /// <p>The IN_REGION mode builds on the standard mode and includes optimization tailored for applications which call AWS services from within the same AWS region</p><p>Note that the default values vended from this mode might change as best practices may evolve. As a result, it is encouraged to perform tests when upgrading the SDK</p> /// </summary> public static IDefaultConfiguration InRegion {get;} = new DefaultConfiguration { Name = DefaultConfigurationMode.InRegion, RetryMode = RequestRetryMode.Standard, StsRegionalEndpoints = StsRegionalEndpointsValue.Regional, S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Regional, // 0:00:01.1 ConnectTimeout = TimeSpan.FromMilliseconds(1100L), // 0:00:01.1 TlsNegotiationTimeout = TimeSpan.FromMilliseconds(1100L), TimeToFirstByteTimeout = null, HttpRequestTimeout = null }; /// <summary> /// <p>The CROSS_REGION mode builds on the standard mode and includes optimization tailored for applications which call AWS services in a different region</p><p>Note that the default values vended from this mode might change as best practices may evolve. As a result, it is encouraged to perform tests when upgrading the SDK</p> /// </summary> public static IDefaultConfiguration CrossRegion {get;} = new DefaultConfiguration { Name = DefaultConfigurationMode.CrossRegion, RetryMode = RequestRetryMode.Standard, StsRegionalEndpoints = StsRegionalEndpointsValue.Regional, S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Regional, // 0:00:03.1 ConnectTimeout = TimeSpan.FromMilliseconds(3100L), // 0:00:03.1 TlsNegotiationTimeout = TimeSpan.FromMilliseconds(3100L), TimeToFirstByteTimeout = null, HttpRequestTimeout = null }; /// <summary> /// <p>The MOBILE mode builds on the standard mode and includes optimization tailored for mobile applications</p><p>Note that the default values vended from this mode might change as best practices may evolve. As a result, it is encouraged to perform tests when upgrading the SDK</p> /// </summary> public static IDefaultConfiguration Mobile {get;} = new DefaultConfiguration { Name = DefaultConfigurationMode.Mobile, RetryMode = RequestRetryMode.Standard, StsRegionalEndpoints = StsRegionalEndpointsValue.Regional, S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Regional, // 0:00:30 ConnectTimeout = TimeSpan.FromMilliseconds(30000L), // 0:00:30 TlsNegotiationTimeout = TimeSpan.FromMilliseconds(30000L), TimeToFirstByteTimeout = null, HttpRequestTimeout = null }; /// <summary> /// <p>The AUTO mode is an experimental mode that builds on the standard mode. The SDK will attempt to discover the execution environment to determine the appropriate settings automatically.</p><p>Note that the auto detection is heuristics-based and does not guarantee 100% accuracy. STANDARD mode will be used if the execution environment cannot be determined. The auto detection might query <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html">EC2 Instance Metadata service</a>, which might introduce latency. Therefore we recommend choosing an explicit defaults_mode instead if startup latency is critical to your application</p> /// </summary> public static IDefaultConfiguration Auto {get;} = new DefaultConfiguration { Name = DefaultConfigurationMode.Auto, RetryMode = RequestRetryMode.Standard, StsRegionalEndpoints = StsRegionalEndpointsValue.Regional, S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Regional, // 0:00:01.1 ConnectTimeout = TimeSpan.FromMilliseconds(1100L), // 0:00:01.1 TlsNegotiationTimeout = TimeSpan.FromMilliseconds(1100L), TimeToFirstByteTimeout = null, HttpRequestTimeout = null }; /// <summary> /// <p>The LEGACY mode provides default settings that vary per SDK and were used prior to establishment of defaults_mode</p> /// </summary> public static IDefaultConfiguration Legacy {get;} = new DefaultConfiguration { Name = DefaultConfigurationMode.Legacy, RetryMode = RequestRetryMode.Legacy, StsRegionalEndpoints = StsRegionalEndpointsValue.Legacy, S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Legacy, ConnectTimeout = null, TlsNegotiationTimeout = null, TimeToFirstByteTimeout = null, HttpRequestTimeout = null }; } }
146
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the braket-2019-09-01.normal.json service model. */ using Amazon.Runtime; using Amazon.Runtime.Endpoints; namespace Amazon.Braket.Endpoints { /// <summary> /// Contains parameters used for resolving Braket endpoints /// Parameters can be sourced from client config and service operations /// Used by internal BraketEndpointProvider and BraketEndpointResolver /// Can be used by custom EndpointProvider, see ClientConfig.EndpointProvider /// </summary> public class BraketEndpointParameters : EndpointParameters { /// <summary> /// BraketEndpointParameters constructor /// </summary> public BraketEndpointParameters() { UseDualStack = false; UseFIPS = false; } /// <summary> /// Region parameter /// </summary> public string Region { get { return (string)this["Region"]; } set { this["Region"] = value; } } /// <summary> /// UseDualStack parameter /// </summary> public bool? UseDualStack { get { return (bool?)this["UseDualStack"]; } set { this["UseDualStack"] = value; } } /// <summary> /// UseFIPS parameter /// </summary> public bool? UseFIPS { get { return (bool?)this["UseFIPS"]; } set { this["UseFIPS"] = value; } } /// <summary> /// Endpoint parameter /// </summary> public string Endpoint { get { return (string)this["Endpoint"]; } set { this["Endpoint"] = value; } } } }
78
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Net; using System.Text; using Amazon.Runtime; namespace Amazon.Braket { ///<summary> /// Common exception for the Braket service. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class AmazonBraketException : AmazonServiceException { /// <summary> /// Construct instance of AmazonBraketException /// </summary> /// <param name="message"></param> public AmazonBraketException(string message) : base(message) { } /// <summary> /// Construct instance of AmazonBraketException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public AmazonBraketException(string message, Exception innerException) : base(message, innerException) { } /// <summary> /// Construct instance of AmazonBraketException /// </summary> /// <param name="innerException"></param> public AmazonBraketException(Exception innerException) : base(innerException.Message, innerException) { } /// <summary> /// Construct instance of AmazonBraketException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public AmazonBraketException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) { } /// <summary> /// Construct instance of AmazonBraketException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public AmazonBraketException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) { } #if !NETSTANDARD /// <summary> /// Constructs a new instance of the AmazonBraketException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected AmazonBraketException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } #endif } }
105
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the braket-2019-09-01.normal.json service model. */ using System; using Amazon.Runtime; namespace Amazon.Braket { /// <summary> /// Constants used for properties of type CancellationStatus. /// </summary> public class CancellationStatus : ConstantClass { /// <summary> /// Constant CANCELLED for CancellationStatus /// </summary> public static readonly CancellationStatus CANCELLED = new CancellationStatus("CANCELLED"); /// <summary> /// Constant CANCELLING for CancellationStatus /// </summary> public static readonly CancellationStatus CANCELLING = new CancellationStatus("CANCELLING"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public CancellationStatus(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static CancellationStatus FindValue(string value) { return FindValue<CancellationStatus>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator CancellationStatus(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type CompressionType. /// </summary> public class CompressionType : ConstantClass { /// <summary> /// Constant GZIP for CompressionType /// </summary> public static readonly CompressionType GZIP = new CompressionType("GZIP"); /// <summary> /// Constant NONE for CompressionType /// </summary> public static readonly CompressionType NONE = new CompressionType("NONE"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public CompressionType(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static CompressionType FindValue(string value) { return FindValue<CompressionType>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator CompressionType(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type DeviceStatus. /// </summary> public class DeviceStatus : ConstantClass { /// <summary> /// Constant OFFLINE for DeviceStatus /// </summary> public static readonly DeviceStatus OFFLINE = new DeviceStatus("OFFLINE"); /// <summary> /// Constant ONLINE for DeviceStatus /// </summary> public static readonly DeviceStatus ONLINE = new DeviceStatus("ONLINE"); /// <summary> /// Constant RETIRED for DeviceStatus /// </summary> public static readonly DeviceStatus RETIRED = new DeviceStatus("RETIRED"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public DeviceStatus(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static DeviceStatus FindValue(string value) { return FindValue<DeviceStatus>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator DeviceStatus(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type DeviceType. /// </summary> public class DeviceType : ConstantClass { /// <summary> /// Constant QPU for DeviceType /// </summary> public static readonly DeviceType QPU = new DeviceType("QPU"); /// <summary> /// Constant SIMULATOR for DeviceType /// </summary> public static readonly DeviceType SIMULATOR = new DeviceType("SIMULATOR"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public DeviceType(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static DeviceType FindValue(string value) { return FindValue<DeviceType>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator DeviceType(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type InstanceType. /// </summary> public class InstanceType : ConstantClass { /// <summary> /// Constant MlC42xlarge for InstanceType /// </summary> public static readonly InstanceType MlC42xlarge = new InstanceType("ml.c4.2xlarge"); /// <summary> /// Constant MlC44xlarge for InstanceType /// </summary> public static readonly InstanceType MlC44xlarge = new InstanceType("ml.c4.4xlarge"); /// <summary> /// Constant MlC48xlarge for InstanceType /// </summary> public static readonly InstanceType MlC48xlarge = new InstanceType("ml.c4.8xlarge"); /// <summary> /// Constant MlC4Xlarge for InstanceType /// </summary> public static readonly InstanceType MlC4Xlarge = new InstanceType("ml.c4.xlarge"); /// <summary> /// Constant MlC518xlarge for InstanceType /// </summary> public static readonly InstanceType MlC518xlarge = new InstanceType("ml.c5.18xlarge"); /// <summary> /// Constant MlC52xlarge for InstanceType /// </summary> public static readonly InstanceType MlC52xlarge = new InstanceType("ml.c5.2xlarge"); /// <summary> /// Constant MlC54xlarge for InstanceType /// </summary> public static readonly InstanceType MlC54xlarge = new InstanceType("ml.c5.4xlarge"); /// <summary> /// Constant MlC59xlarge for InstanceType /// </summary> public static readonly InstanceType MlC59xlarge = new InstanceType("ml.c5.9xlarge"); /// <summary> /// Constant MlC5n18xlarge for InstanceType /// </summary> public static readonly InstanceType MlC5n18xlarge = new InstanceType("ml.c5n.18xlarge"); /// <summary> /// Constant MlC5n2xlarge for InstanceType /// </summary> public static readonly InstanceType MlC5n2xlarge = new InstanceType("ml.c5n.2xlarge"); /// <summary> /// Constant MlC5n4xlarge for InstanceType /// </summary> public static readonly InstanceType MlC5n4xlarge = new InstanceType("ml.c5n.4xlarge"); /// <summary> /// Constant MlC5n9xlarge for InstanceType /// </summary> public static readonly InstanceType MlC5n9xlarge = new InstanceType("ml.c5n.9xlarge"); /// <summary> /// Constant MlC5nXlarge for InstanceType /// </summary> public static readonly InstanceType MlC5nXlarge = new InstanceType("ml.c5n.xlarge"); /// <summary> /// Constant MlC5Xlarge for InstanceType /// </summary> public static readonly InstanceType MlC5Xlarge = new InstanceType("ml.c5.xlarge"); /// <summary> /// Constant MlG4dn12xlarge for InstanceType /// </summary> public static readonly InstanceType MlG4dn12xlarge = new InstanceType("ml.g4dn.12xlarge"); /// <summary> /// Constant MlG4dn16xlarge for InstanceType /// </summary> public static readonly InstanceType MlG4dn16xlarge = new InstanceType("ml.g4dn.16xlarge"); /// <summary> /// Constant MlG4dn2xlarge for InstanceType /// </summary> public static readonly InstanceType MlG4dn2xlarge = new InstanceType("ml.g4dn.2xlarge"); /// <summary> /// Constant MlG4dn4xlarge for InstanceType /// </summary> public static readonly InstanceType MlG4dn4xlarge = new InstanceType("ml.g4dn.4xlarge"); /// <summary> /// Constant MlG4dn8xlarge for InstanceType /// </summary> public static readonly InstanceType MlG4dn8xlarge = new InstanceType("ml.g4dn.8xlarge"); /// <summary> /// Constant MlG4dnXlarge for InstanceType /// </summary> public static readonly InstanceType MlG4dnXlarge = new InstanceType("ml.g4dn.xlarge"); /// <summary> /// Constant MlM410xlarge for InstanceType /// </summary> public static readonly InstanceType MlM410xlarge = new InstanceType("ml.m4.10xlarge"); /// <summary> /// Constant MlM416xlarge for InstanceType /// </summary> public static readonly InstanceType MlM416xlarge = new InstanceType("ml.m4.16xlarge"); /// <summary> /// Constant MlM42xlarge for InstanceType /// </summary> public static readonly InstanceType MlM42xlarge = new InstanceType("ml.m4.2xlarge"); /// <summary> /// Constant MlM44xlarge for InstanceType /// </summary> public static readonly InstanceType MlM44xlarge = new InstanceType("ml.m4.4xlarge"); /// <summary> /// Constant MlM4Xlarge for InstanceType /// </summary> public static readonly InstanceType MlM4Xlarge = new InstanceType("ml.m4.xlarge"); /// <summary> /// Constant MlM512xlarge for InstanceType /// </summary> public static readonly InstanceType MlM512xlarge = new InstanceType("ml.m5.12xlarge"); /// <summary> /// Constant MlM524xlarge for InstanceType /// </summary> public static readonly InstanceType MlM524xlarge = new InstanceType("ml.m5.24xlarge"); /// <summary> /// Constant MlM52xlarge for InstanceType /// </summary> public static readonly InstanceType MlM52xlarge = new InstanceType("ml.m5.2xlarge"); /// <summary> /// Constant MlM54xlarge for InstanceType /// </summary> public static readonly InstanceType MlM54xlarge = new InstanceType("ml.m5.4xlarge"); /// <summary> /// Constant MlM5Large for InstanceType /// </summary> public static readonly InstanceType MlM5Large = new InstanceType("ml.m5.large"); /// <summary> /// Constant MlM5Xlarge for InstanceType /// </summary> public static readonly InstanceType MlM5Xlarge = new InstanceType("ml.m5.xlarge"); /// <summary> /// Constant MlP216xlarge for InstanceType /// </summary> public static readonly InstanceType MlP216xlarge = new InstanceType("ml.p2.16xlarge"); /// <summary> /// Constant MlP28xlarge for InstanceType /// </summary> public static readonly InstanceType MlP28xlarge = new InstanceType("ml.p2.8xlarge"); /// <summary> /// Constant MlP2Xlarge for InstanceType /// </summary> public static readonly InstanceType MlP2Xlarge = new InstanceType("ml.p2.xlarge"); /// <summary> /// Constant MlP316xlarge for InstanceType /// </summary> public static readonly InstanceType MlP316xlarge = new InstanceType("ml.p3.16xlarge"); /// <summary> /// Constant MlP32xlarge for InstanceType /// </summary> public static readonly InstanceType MlP32xlarge = new InstanceType("ml.p3.2xlarge"); /// <summary> /// Constant MlP38xlarge for InstanceType /// </summary> public static readonly InstanceType MlP38xlarge = new InstanceType("ml.p3.8xlarge"); /// <summary> /// Constant MlP3dn24xlarge for InstanceType /// </summary> public static readonly InstanceType MlP3dn24xlarge = new InstanceType("ml.p3dn.24xlarge"); /// <summary> /// Constant MlP4d24xlarge for InstanceType /// </summary> public static readonly InstanceType MlP4d24xlarge = new InstanceType("ml.p4d.24xlarge"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public InstanceType(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static InstanceType FindValue(string value) { return FindValue<InstanceType>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator InstanceType(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type JobEventType. /// </summary> public class JobEventType : ConstantClass { /// <summary> /// Constant CANCELLED for JobEventType /// </summary> public static readonly JobEventType CANCELLED = new JobEventType("CANCELLED"); /// <summary> /// Constant COMPLETED for JobEventType /// </summary> public static readonly JobEventType COMPLETED = new JobEventType("COMPLETED"); /// <summary> /// Constant DEPRIORITIZED_DUE_TO_INACTIVITY for JobEventType /// </summary> public static readonly JobEventType DEPRIORITIZED_DUE_TO_INACTIVITY = new JobEventType("DEPRIORITIZED_DUE_TO_INACTIVITY"); /// <summary> /// Constant DOWNLOADING_DATA for JobEventType /// </summary> public static readonly JobEventType DOWNLOADING_DATA = new JobEventType("DOWNLOADING_DATA"); /// <summary> /// Constant FAILED for JobEventType /// </summary> public static readonly JobEventType FAILED = new JobEventType("FAILED"); /// <summary> /// Constant MAX_RUNTIME_EXCEEDED for JobEventType /// </summary> public static readonly JobEventType MAX_RUNTIME_EXCEEDED = new JobEventType("MAX_RUNTIME_EXCEEDED"); /// <summary> /// Constant QUEUED_FOR_EXECUTION for JobEventType /// </summary> public static readonly JobEventType QUEUED_FOR_EXECUTION = new JobEventType("QUEUED_FOR_EXECUTION"); /// <summary> /// Constant RUNNING for JobEventType /// </summary> public static readonly JobEventType RUNNING = new JobEventType("RUNNING"); /// <summary> /// Constant STARTING_INSTANCE for JobEventType /// </summary> public static readonly JobEventType STARTING_INSTANCE = new JobEventType("STARTING_INSTANCE"); /// <summary> /// Constant UPLOADING_RESULTS for JobEventType /// </summary> public static readonly JobEventType UPLOADING_RESULTS = new JobEventType("UPLOADING_RESULTS"); /// <summary> /// Constant WAITING_FOR_PRIORITY for JobEventType /// </summary> public static readonly JobEventType WAITING_FOR_PRIORITY = new JobEventType("WAITING_FOR_PRIORITY"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public JobEventType(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static JobEventType FindValue(string value) { return FindValue<JobEventType>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator JobEventType(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type JobPrimaryStatus. /// </summary> public class JobPrimaryStatus : ConstantClass { /// <summary> /// Constant CANCELLED for JobPrimaryStatus /// </summary> public static readonly JobPrimaryStatus CANCELLED = new JobPrimaryStatus("CANCELLED"); /// <summary> /// Constant CANCELLING for JobPrimaryStatus /// </summary> public static readonly JobPrimaryStatus CANCELLING = new JobPrimaryStatus("CANCELLING"); /// <summary> /// Constant COMPLETED for JobPrimaryStatus /// </summary> public static readonly JobPrimaryStatus COMPLETED = new JobPrimaryStatus("COMPLETED"); /// <summary> /// Constant FAILED for JobPrimaryStatus /// </summary> public static readonly JobPrimaryStatus FAILED = new JobPrimaryStatus("FAILED"); /// <summary> /// Constant QUEUED for JobPrimaryStatus /// </summary> public static readonly JobPrimaryStatus QUEUED = new JobPrimaryStatus("QUEUED"); /// <summary> /// Constant RUNNING for JobPrimaryStatus /// </summary> public static readonly JobPrimaryStatus RUNNING = new JobPrimaryStatus("RUNNING"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public JobPrimaryStatus(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static JobPrimaryStatus FindValue(string value) { return FindValue<JobPrimaryStatus>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator JobPrimaryStatus(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type QuantumTaskStatus. /// </summary> public class QuantumTaskStatus : ConstantClass { /// <summary> /// Constant CANCELLED for QuantumTaskStatus /// </summary> public static readonly QuantumTaskStatus CANCELLED = new QuantumTaskStatus("CANCELLED"); /// <summary> /// Constant CANCELLING for QuantumTaskStatus /// </summary> public static readonly QuantumTaskStatus CANCELLING = new QuantumTaskStatus("CANCELLING"); /// <summary> /// Constant COMPLETED for QuantumTaskStatus /// </summary> public static readonly QuantumTaskStatus COMPLETED = new QuantumTaskStatus("COMPLETED"); /// <summary> /// Constant CREATED for QuantumTaskStatus /// </summary> public static readonly QuantumTaskStatus CREATED = new QuantumTaskStatus("CREATED"); /// <summary> /// Constant FAILED for QuantumTaskStatus /// </summary> public static readonly QuantumTaskStatus FAILED = new QuantumTaskStatus("FAILED"); /// <summary> /// Constant QUEUED for QuantumTaskStatus /// </summary> public static readonly QuantumTaskStatus QUEUED = new QuantumTaskStatus("QUEUED"); /// <summary> /// Constant RUNNING for QuantumTaskStatus /// </summary> public static readonly QuantumTaskStatus RUNNING = new QuantumTaskStatus("RUNNING"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public QuantumTaskStatus(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static QuantumTaskStatus FindValue(string value) { return FindValue<QuantumTaskStatus>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator QuantumTaskStatus(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type SearchJobsFilterOperator. /// </summary> public class SearchJobsFilterOperator : ConstantClass { /// <summary> /// Constant BETWEEN for SearchJobsFilterOperator /// </summary> public static readonly SearchJobsFilterOperator BETWEEN = new SearchJobsFilterOperator("BETWEEN"); /// <summary> /// Constant CONTAINS for SearchJobsFilterOperator /// </summary> public static readonly SearchJobsFilterOperator CONTAINS = new SearchJobsFilterOperator("CONTAINS"); /// <summary> /// Constant EQUAL for SearchJobsFilterOperator /// </summary> public static readonly SearchJobsFilterOperator EQUAL = new SearchJobsFilterOperator("EQUAL"); /// <summary> /// Constant GT for SearchJobsFilterOperator /// </summary> public static readonly SearchJobsFilterOperator GT = new SearchJobsFilterOperator("GT"); /// <summary> /// Constant GTE for SearchJobsFilterOperator /// </summary> public static readonly SearchJobsFilterOperator GTE = new SearchJobsFilterOperator("GTE"); /// <summary> /// Constant LT for SearchJobsFilterOperator /// </summary> public static readonly SearchJobsFilterOperator LT = new SearchJobsFilterOperator("LT"); /// <summary> /// Constant LTE for SearchJobsFilterOperator /// </summary> public static readonly SearchJobsFilterOperator LTE = new SearchJobsFilterOperator("LTE"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public SearchJobsFilterOperator(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static SearchJobsFilterOperator FindValue(string value) { return FindValue<SearchJobsFilterOperator>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator SearchJobsFilterOperator(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type SearchQuantumTasksFilterOperator. /// </summary> public class SearchQuantumTasksFilterOperator : ConstantClass { /// <summary> /// Constant BETWEEN for SearchQuantumTasksFilterOperator /// </summary> public static readonly SearchQuantumTasksFilterOperator BETWEEN = new SearchQuantumTasksFilterOperator("BETWEEN"); /// <summary> /// Constant EQUAL for SearchQuantumTasksFilterOperator /// </summary> public static readonly SearchQuantumTasksFilterOperator EQUAL = new SearchQuantumTasksFilterOperator("EQUAL"); /// <summary> /// Constant GT for SearchQuantumTasksFilterOperator /// </summary> public static readonly SearchQuantumTasksFilterOperator GT = new SearchQuantumTasksFilterOperator("GT"); /// <summary> /// Constant GTE for SearchQuantumTasksFilterOperator /// </summary> public static readonly SearchQuantumTasksFilterOperator GTE = new SearchQuantumTasksFilterOperator("GTE"); /// <summary> /// Constant LT for SearchQuantumTasksFilterOperator /// </summary> public static readonly SearchQuantumTasksFilterOperator LT = new SearchQuantumTasksFilterOperator("LT"); /// <summary> /// Constant LTE for SearchQuantumTasksFilterOperator /// </summary> public static readonly SearchQuantumTasksFilterOperator LTE = new SearchQuantumTasksFilterOperator("LTE"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public SearchQuantumTasksFilterOperator(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static SearchQuantumTasksFilterOperator FindValue(string value) { return FindValue<SearchQuantumTasksFilterOperator>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator SearchQuantumTasksFilterOperator(string value) { return FindValue(value); } } }
786
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using Amazon.Runtime; using Amazon.Runtime.Endpoints; using static Amazon.Runtime.Internal.Endpoints.StandardLibrary.Fn; namespace Amazon.Braket.Internal { /// <summary> /// Amazon Braket endpoint provider. /// Resolves endpoint for given set of BraketEndpointParameters. /// Can throw AmazonClientException if endpoint resolution is unsuccessful. /// </summary> public class AmazonBraketEndpointProvider : IEndpointProvider { /// <summary> /// Resolve endpoint for BraketEndpointParameters /// </summary> public Endpoint ResolveEndpoint(EndpointParameters parameters) { if (parameters == null) throw new ArgumentNullException("parameters"); if (parameters["UseDualStack"] == null) throw new AmazonClientException("UseDualStack parameter must be set for endpoint resolution"); if (parameters["UseFIPS"] == null) throw new AmazonClientException("UseFIPS parameter must be set for endpoint resolution"); var refs = new Dictionary<string, object>() { ["Region"] = parameters["Region"], ["UseDualStack"] = parameters["UseDualStack"], ["UseFIPS"] = parameters["UseFIPS"], ["Endpoint"] = parameters["Endpoint"], }; if ((refs["PartitionResult"] = Partition((string)refs["Region"])) != null) { if (IsSet(refs["Endpoint"]) && (refs["url"] = ParseURL((string)refs["Endpoint"])) != null) { if (Equals(refs["UseFIPS"], true)) { throw new AmazonClientException("Invalid Configuration: FIPS and custom endpoint are not supported"); } if (Equals(refs["UseDualStack"], true)) { throw new AmazonClientException("Invalid Configuration: Dualstack and custom endpoint are not supported"); } return new Endpoint((string)refs["Endpoint"], InterpolateJson(@"", refs), InterpolateJson(@"", refs)); } if (Equals(refs["UseFIPS"], true) && Equals(refs["UseDualStack"], true)) { if (Equals(true, GetAttr(refs["PartitionResult"], "supportsFIPS")) && Equals(true, GetAttr(refs["PartitionResult"], "supportsDualStack"))) { return new Endpoint(Interpolate(@"https://braket-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs)); } throw new AmazonClientException("FIPS and DualStack are enabled, but this partition does not support one or both"); } if (Equals(refs["UseFIPS"], true)) { if (Equals(true, GetAttr(refs["PartitionResult"], "supportsFIPS"))) { return new Endpoint(Interpolate(@"https://braket-fips.{Region}.{PartitionResult#dnsSuffix}", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs)); } throw new AmazonClientException("FIPS is enabled but this partition does not support FIPS"); } if (Equals(refs["UseDualStack"], true)) { if (Equals(true, GetAttr(refs["PartitionResult"], "supportsDualStack"))) { return new Endpoint(Interpolate(@"https://braket.{Region}.{PartitionResult#dualStackDnsSuffix}", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs)); } throw new AmazonClientException("DualStack is enabled but this partition does not support DualStack"); } return new Endpoint(Interpolate(@"https://braket.{Region}.{PartitionResult#dnsSuffix}", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs)); } throw new AmazonClientException("Cannot resolve endpoint"); } } }
99
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the braket-2019-09-01.normal.json service model. */ using System; using Amazon.Braket.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Endpoints; using Amazon.Util; using Amazon.Braket.Endpoints; #pragma warning disable 1591 namespace Amazon.Braket.Internal { /// <summary> /// Amazon Braket endpoint resolver. /// Custom PipelineHandler responsible for resolving endpoint and setting authentication parameters for Braket service requests. /// Collects values for BraketEndpointParameters and then tries to resolve endpoint by calling /// ResolveEndpoint method on GlobalEndpoints.Provider if present, otherwise uses BraketEndpointProvider. /// Responsible for setting authentication and http headers provided by resolved endpoint. /// </summary> public class AmazonBraketEndpointResolver : BaseEndpointResolver { protected override void ServiceSpecificHandler(IExecutionContext executionContext, EndpointParameters parameters) { InjectHostPrefix(executionContext.RequestContext); } protected override EndpointParameters MapEndpointsParameters(IRequestContext requestContext) { var config = (AmazonBraketConfig)requestContext.ClientConfig; var result = new BraketEndpointParameters(); result.Region = config.RegionEndpoint?.SystemName; result.UseDualStack = config.UseDualstackEndpoint; result.UseFIPS = config.UseFIPSEndpoint; result.Endpoint = config.ServiceURL; // The region needs to be determined from the ServiceURL if not set. var regionEndpoint = config.RegionEndpoint; if (regionEndpoint == null && !string.IsNullOrEmpty(config.ServiceURL)) { var regionName = AWSSDKUtils.DetermineRegion(config.ServiceURL); result.Region = RegionEndpoint.GetBySystemName(regionName).SystemName; } // To support legacy endpoint overridding rules in the endpoints.json if (result.Region == "us-east-1-regional") { result.Region = "us-east-1"; } // Use AlternateEndpoint region override if set if (requestContext.Request.AlternateEndpoint != null) { result.Region = requestContext.Request.AlternateEndpoint.SystemName; } // Assign staticContextParams and contextParam per operation return result; } } }
83
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the braket-2019-09-01.normal.json service model. */ using Amazon.Runtime.Internal; namespace Amazon.Braket.Internal { /// <summary> /// Service metadata for Amazon Braket service /// </summary> public partial class AmazonBraketMetadata : IServiceMetadata { /// <summary> /// Gets the value of the Service Id. /// </summary> public string ServiceId { get { return "Braket"; } } /// <summary> /// Gets the dictionary that gives mapping of renamed operations /// </summary> public System.Collections.Generic.IDictionary<string, string> OperationNameMapping { get { return new System.Collections.Generic.Dictionary<string, string>(0) { }; } } } }
55
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Braket.Model { /// <summary> /// You do not have sufficient access to perform this action. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class AccessDeniedException : AmazonBraketException { /// <summary> /// Constructs a new AccessDeniedException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public AccessDeniedException(string message) : base(message) {} /// <summary> /// Construct instance of AccessDeniedException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public AccessDeniedException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of AccessDeniedException /// </summary> /// <param name="innerException"></param> public AccessDeniedException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of AccessDeniedException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public AccessDeniedException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of AccessDeniedException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public AccessDeniedException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the AccessDeniedException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected AccessDeniedException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
124
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Braket.Model { /// <summary> /// Defines the Amazon Braket job to be created. Specifies the container image the job /// uses and the paths to the Python scripts used for entry and training. /// </summary> public partial class AlgorithmSpecification { private ContainerImage _containerImage; private ScriptModeConfig _scriptModeConfig; /// <summary> /// Gets and sets the property ContainerImage. /// <para> /// The container image used to create an Amazon Braket job. /// </para> /// </summary> public ContainerImage ContainerImage { get { return this._containerImage; } set { this._containerImage = value; } } // Check to see if ContainerImage property is set internal bool IsSetContainerImage() { return this._containerImage != null; } /// <summary> /// Gets and sets the property ScriptModeConfig. /// <para> /// Configures the paths to the Python scripts used for entry and training. /// </para> /// </summary> public ScriptModeConfig ScriptModeConfig { get { return this._scriptModeConfig; } set { this._scriptModeConfig = value; } } // Check to see if ScriptModeConfig property is set internal bool IsSetScriptModeConfig() { return this._scriptModeConfig != null; } } }
77
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the braket-2019-09-01.normal.json service model. */ using Amazon.Runtime; namespace Amazon.Braket { /// <summary> /// Base class for Braket operation requests. /// </summary> public partial class AmazonBraketRequest : AmazonWebServiceRequest { } }
30
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Braket.Model { /// <summary> /// Container for the parameters to the CancelJob operation. /// Cancels an Amazon Braket job. /// </summary> public partial class CancelJobRequest : AmazonBraketRequest { private string _jobArn; /// <summary> /// Gets and sets the property JobArn. /// <para> /// The ARN of the Amazon Braket job to cancel. /// </para> /// </summary> [AWSProperty(Required=true)] public string JobArn { get { return this._jobArn; } set { this._jobArn = value; } } // Check to see if JobArn property is set internal bool IsSetJobArn() { return this._jobArn != null; } } }
59
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Braket.Model { /// <summary> /// This is the response object from the CancelJob operation. /// </summary> public partial class CancelJobResponse : AmazonWebServiceResponse { private CancellationStatus _cancellationStatus; private string _jobArn; /// <summary> /// Gets and sets the property CancellationStatus. /// <para> /// The status of the job cancellation request. /// </para> /// </summary> [AWSProperty(Required=true)] public CancellationStatus CancellationStatus { get { return this._cancellationStatus; } set { this._cancellationStatus = value; } } // Check to see if CancellationStatus property is set internal bool IsSetCancellationStatus() { return this._cancellationStatus != null; } /// <summary> /// Gets and sets the property JobArn. /// <para> /// The ARN of the Amazon Braket job. /// </para> /// </summary> [AWSProperty(Required=true)] public string JobArn { get { return this._jobArn; } set { this._jobArn = value; } } // Check to see if JobArn property is set internal bool IsSetJobArn() { return this._jobArn != null; } } }
78
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Braket.Model { /// <summary> /// Container for the parameters to the CancelQuantumTask operation. /// Cancels the specified task. /// </summary> public partial class CancelQuantumTaskRequest : AmazonBraketRequest { private string _clientToken; private string _quantumTaskArn; /// <summary> /// Gets and sets the property ClientToken. /// <para> /// The client token associated with the request. /// </para> /// </summary> [AWSProperty(Min=1, Max=64)] public string ClientToken { get { return this._clientToken; } set { this._clientToken = value; } } // Check to see if ClientToken property is set internal bool IsSetClientToken() { return this._clientToken != null; } /// <summary> /// Gets and sets the property QuantumTaskArn. /// <para> /// The ARN of the task to cancel. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=256)] public string QuantumTaskArn { get { return this._quantumTaskArn; } set { this._quantumTaskArn = value; } } // Check to see if QuantumTaskArn property is set internal bool IsSetQuantumTaskArn() { return this._quantumTaskArn != null; } } }
79
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Braket.Model { /// <summary> /// This is the response object from the CancelQuantumTask operation. /// </summary> public partial class CancelQuantumTaskResponse : AmazonWebServiceResponse { private CancellationStatus _cancellationStatus; private string _quantumTaskArn; /// <summary> /// Gets and sets the property CancellationStatus. /// <para> /// The status of the cancellation request. /// </para> /// </summary> [AWSProperty(Required=true)] public CancellationStatus CancellationStatus { get { return this._cancellationStatus; } set { this._cancellationStatus = value; } } // Check to see if CancellationStatus property is set internal bool IsSetCancellationStatus() { return this._cancellationStatus != null; } /// <summary> /// Gets and sets the property QuantumTaskArn. /// <para> /// The ARN of the task. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=256)] public string QuantumTaskArn { get { return this._quantumTaskArn; } set { this._quantumTaskArn = value; } } // Check to see if QuantumTaskArn property is set internal bool IsSetQuantumTaskArn() { return this._quantumTaskArn != null; } } }
78
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Braket.Model { /// <summary> /// An error occurred due to a conflict. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class ConflictException : AmazonBraketException { /// <summary> /// Constructs a new ConflictException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public ConflictException(string message) : base(message) {} /// <summary> /// Construct instance of ConflictException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public ConflictException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of ConflictException /// </summary> /// <param name="innerException"></param> public ConflictException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of ConflictException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ConflictException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of ConflictException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ConflictException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the ConflictException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected ConflictException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
124
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Braket.Model { /// <summary> /// The container image used to create an Amazon Braket job. /// </summary> public partial class ContainerImage { private string _uri; /// <summary> /// Gets and sets the property Uri. /// <para> /// The URI locating the container image. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=255)] public string Uri { get { return this._uri; } set { this._uri = value; } } // Check to see if Uri property is set internal bool IsSetUri() { return this._uri != null; } } }
58
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Braket.Model { /// <summary> /// Container for the parameters to the CreateJob operation. /// Creates an Amazon Braket job. /// </summary> public partial class CreateJobRequest : AmazonBraketRequest { private AlgorithmSpecification _algorithmSpecification; private JobCheckpointConfig _checkpointConfig; private string _clientToken; private DeviceConfig _deviceConfig; private Dictionary<string, string> _hyperParameters = new Dictionary<string, string>(); private List<InputFileConfig> _inputDataConfig = new List<InputFileConfig>(); private InstanceConfig _instanceConfig; private string _jobName; private JobOutputDataConfig _outputDataConfig; private string _roleArn; private JobStoppingCondition _stoppingCondition; private Dictionary<string, string> _tags = new Dictionary<string, string>(); /// <summary> /// Gets and sets the property AlgorithmSpecification. /// <para> /// Definition of the Amazon Braket job to be created. Specifies the container image the /// job uses and information about the Python scripts used for entry and training. /// </para> /// </summary> [AWSProperty(Required=true)] public AlgorithmSpecification AlgorithmSpecification { get { return this._algorithmSpecification; } set { this._algorithmSpecification = value; } } // Check to see if AlgorithmSpecification property is set internal bool IsSetAlgorithmSpecification() { return this._algorithmSpecification != null; } /// <summary> /// Gets and sets the property CheckpointConfig. /// <para> /// Information about the output locations for job checkpoint data. /// </para> /// </summary> public JobCheckpointConfig CheckpointConfig { get { return this._checkpointConfig; } set { this._checkpointConfig = value; } } // Check to see if CheckpointConfig property is set internal bool IsSetCheckpointConfig() { return this._checkpointConfig != null; } /// <summary> /// Gets and sets the property ClientToken. /// <para> /// A unique token that guarantees that the call to this API is idempotent. /// </para> /// </summary> [AWSProperty(Min=1, Max=64)] public string ClientToken { get { return this._clientToken; } set { this._clientToken = value; } } // Check to see if ClientToken property is set internal bool IsSetClientToken() { return this._clientToken != null; } /// <summary> /// Gets and sets the property DeviceConfig. /// <para> /// The quantum processing unit (QPU) or simulator used to create an Amazon Braket job. /// </para> /// </summary> [AWSProperty(Required=true)] public DeviceConfig DeviceConfig { get { return this._deviceConfig; } set { this._deviceConfig = value; } } // Check to see if DeviceConfig property is set internal bool IsSetDeviceConfig() { return this._deviceConfig != null; } /// <summary> /// Gets and sets the property HyperParameters. /// <para> /// Algorithm-specific parameters used by an Amazon Braket job that influence the quality /// of the training job. The values are set with a string of JSON key:value pairs, where /// the key is the name of the hyperparameter and the value is the value of th hyperparameter. /// </para> /// </summary> [AWSProperty(Min=0, Max=100)] public Dictionary<string, string> HyperParameters { get { return this._hyperParameters; } set { this._hyperParameters = value; } } // Check to see if HyperParameters property is set internal bool IsSetHyperParameters() { return this._hyperParameters != null && this._hyperParameters.Count > 0; } /// <summary> /// Gets and sets the property InputDataConfig. /// <para> /// A list of parameters that specify the name and type of input data and where it is /// located. /// </para> /// </summary> [AWSProperty(Min=0, Max=20)] public List<InputFileConfig> InputDataConfig { get { return this._inputDataConfig; } set { this._inputDataConfig = value; } } // Check to see if InputDataConfig property is set internal bool IsSetInputDataConfig() { return this._inputDataConfig != null && this._inputDataConfig.Count > 0; } /// <summary> /// Gets and sets the property InstanceConfig. /// <para> /// Configuration of the resource instances to use while running the hybrid job on Amazon /// Braket. /// </para> /// </summary> [AWSProperty(Required=true)] public InstanceConfig InstanceConfig { get { return this._instanceConfig; } set { this._instanceConfig = value; } } // Check to see if InstanceConfig property is set internal bool IsSetInstanceConfig() { return this._instanceConfig != null; } /// <summary> /// Gets and sets the property JobName. /// <para> /// The name of the Amazon Braket job. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=50)] public string JobName { get { return this._jobName; } set { this._jobName = value; } } // Check to see if JobName property is set internal bool IsSetJobName() { return this._jobName != null; } /// <summary> /// Gets and sets the property OutputDataConfig. /// <para> /// The path to the S3 location where you want to store job artifacts and the encryption /// key used to store them. /// </para> /// </summary> [AWSProperty(Required=true)] public JobOutputDataConfig OutputDataConfig { get { return this._outputDataConfig; } set { this._outputDataConfig = value; } } // Check to see if OutputDataConfig property is set internal bool IsSetOutputDataConfig() { return this._outputDataConfig != null; } /// <summary> /// Gets and sets the property RoleArn. /// <para> /// The Amazon Resource Name (ARN) of an IAM role that Amazon Braket can assume to perform /// tasks on behalf of a user. It can access user resources, run an Amazon Braket job /// container on behalf of user, and output resources to the users' s3 buckets. /// </para> /// </summary> [AWSProperty(Required=true)] public string RoleArn { get { return this._roleArn; } set { this._roleArn = value; } } // Check to see if RoleArn property is set internal bool IsSetRoleArn() { return this._roleArn != null; } /// <summary> /// Gets and sets the property StoppingCondition. /// <para> /// The user-defined criteria that specifies when a job stops running. /// </para> /// </summary> public JobStoppingCondition StoppingCondition { get { return this._stoppingCondition; } set { this._stoppingCondition = value; } } // Check to see if StoppingCondition property is set internal bool IsSetStoppingCondition() { return this._stoppingCondition != null; } /// <summary> /// Gets and sets the property Tags. /// <para> /// A tag object that consists of a key and an optional value, used to manage metadata /// for Amazon Braket resources. /// </para> /// </summary> public Dictionary<string, string> Tags { get { return this._tags; } set { this._tags = value; } } // Check to see if Tags property is set internal bool IsSetTags() { return this._tags != null && this._tags.Count > 0; } } }
285
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Braket.Model { /// <summary> /// This is the response object from the CreateJob operation. /// </summary> public partial class CreateJobResponse : AmazonWebServiceResponse { private string _jobArn; /// <summary> /// Gets and sets the property JobArn. /// <para> /// The ARN of the Amazon Braket job created. /// </para> /// </summary> [AWSProperty(Required=true)] public string JobArn { get { return this._jobArn; } set { this._jobArn = value; } } // Check to see if JobArn property is set internal bool IsSetJobArn() { return this._jobArn != null; } } }
58
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Braket.Model { /// <summary> /// Container for the parameters to the CreateQuantumTask operation. /// Creates a quantum task. /// </summary> public partial class CreateQuantumTaskRequest : AmazonBraketRequest { private string _action; private string _clientToken; private string _deviceArn; private string _deviceParameters; private string _jobToken; private string _outputs3Bucket; private string _outputs3KeyPrefix; private long? _shots; private Dictionary<string, string> _tags = new Dictionary<string, string>(); /// <summary> /// Gets and sets the property Action. /// <para> /// The action associated with the task. /// </para> /// </summary> [AWSProperty(Required=true)] public string Action { get { return this._action; } set { this._action = value; } } // Check to see if Action property is set internal bool IsSetAction() { return this._action != null; } /// <summary> /// Gets and sets the property ClientToken. /// <para> /// The client token associated with the request. /// </para> /// </summary> [AWSProperty(Min=1, Max=64)] public string ClientToken { get { return this._clientToken; } set { this._clientToken = value; } } // Check to see if ClientToken property is set internal bool IsSetClientToken() { return this._clientToken != null; } /// <summary> /// Gets and sets the property DeviceArn. /// <para> /// The ARN of the device to run the task on. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=256)] public string DeviceArn { get { return this._deviceArn; } set { this._deviceArn = value; } } // Check to see if DeviceArn property is set internal bool IsSetDeviceArn() { return this._deviceArn != null; } /// <summary> /// Gets and sets the property DeviceParameters. /// <para> /// The parameters for the device to run the task on. /// </para> /// </summary> [AWSProperty(Min=1, Max=48000)] public string DeviceParameters { get { return this._deviceParameters; } set { this._deviceParameters = value; } } // Check to see if DeviceParameters property is set internal bool IsSetDeviceParameters() { return this._deviceParameters != null; } /// <summary> /// Gets and sets the property JobToken. /// <para> /// The token for an Amazon Braket job that associates it with the quantum task. /// </para> /// </summary> [AWSProperty(Min=1, Max=128)] public string JobToken { get { return this._jobToken; } set { this._jobToken = value; } } // Check to see if JobToken property is set internal bool IsSetJobToken() { return this._jobToken != null; } /// <summary> /// Gets and sets the property OutputS3Bucket. /// <para> /// The S3 bucket to store task result files in. /// </para> /// </summary> [AWSProperty(Required=true, Min=3, Max=63)] public string OutputS3Bucket { get { return this._outputs3Bucket; } set { this._outputs3Bucket = value; } } // Check to see if OutputS3Bucket property is set internal bool IsSetOutputS3Bucket() { return this._outputs3Bucket != null; } /// <summary> /// Gets and sets the property OutputS3KeyPrefix. /// <para> /// The key prefix for the location in the S3 bucket to store task results in. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=1024)] public string OutputS3KeyPrefix { get { return this._outputs3KeyPrefix; } set { this._outputs3KeyPrefix = value; } } // Check to see if OutputS3KeyPrefix property is set internal bool IsSetOutputS3KeyPrefix() { return this._outputs3KeyPrefix != null; } /// <summary> /// Gets and sets the property Shots. /// <para> /// The number of shots to use for the task. /// </para> /// </summary> [AWSProperty(Required=true, Min=0)] public long Shots { get { return this._shots.GetValueOrDefault(); } set { this._shots = value; } } // Check to see if Shots property is set internal bool IsSetShots() { return this._shots.HasValue; } /// <summary> /// Gets and sets the property Tags. /// <para> /// Tags to be added to the quantum task you're creating. /// </para> /// </summary> public Dictionary<string, string> Tags { get { return this._tags; } set { this._tags = value; } } // Check to see if Tags property is set internal bool IsSetTags() { return this._tags != null && this._tags.Count > 0; } } }
218
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Braket.Model { /// <summary> /// This is the response object from the CreateQuantumTask operation. /// </summary> public partial class CreateQuantumTaskResponse : AmazonWebServiceResponse { private string _quantumTaskArn; /// <summary> /// Gets and sets the property QuantumTaskArn. /// <para> /// The ARN of the task created by the request. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=256)] public string QuantumTaskArn { get { return this._quantumTaskArn; } set { this._quantumTaskArn = value; } } // Check to see if QuantumTaskArn property is set internal bool IsSetQuantumTaskArn() { return this._quantumTaskArn != null; } } }
58
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Braket.Model { /// <summary> /// Information about the source of the data used by the Amazon Braket job. /// </summary> public partial class DataSource { private S3DataSource _s3DataSource; /// <summary> /// Gets and sets the property S3DataSource. /// <para> /// Information about the data stored in Amazon S3 used by the Amazon Braket job. /// </para> /// </summary> [AWSProperty(Required=true)] public S3DataSource S3DataSource { get { return this._s3DataSource; } set { this._s3DataSource = value; } } // Check to see if S3DataSource property is set internal bool IsSetS3DataSource() { return this._s3DataSource != null; } } }
58
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Braket.Model { /// <summary> /// Configures the quantum processing units (QPUs) or simulator used to create and run /// an Amazon Braket job. /// </summary> public partial class DeviceConfig { private string _device; /// <summary> /// Gets and sets the property Device. /// <para> /// The primary quantum processing unit (QPU) or simulator used to create and run an Amazon /// Braket job. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=256)] public string Device { get { return this._device; } set { this._device = value; } } // Check to see if Device property is set internal bool IsSetDevice() { return this._device != null; } } }
60
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Braket.Model { /// <summary> /// The specified device is currently offline. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class DeviceOfflineException : AmazonBraketException { /// <summary> /// Constructs a new DeviceOfflineException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public DeviceOfflineException(string message) : base(message) {} /// <summary> /// Construct instance of DeviceOfflineException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public DeviceOfflineException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of DeviceOfflineException /// </summary> /// <param name="innerException"></param> public DeviceOfflineException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of DeviceOfflineException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public DeviceOfflineException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of DeviceOfflineException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public DeviceOfflineException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the DeviceOfflineException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected DeviceOfflineException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
124
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Braket.Model { /// <summary> /// The specified device has been retired. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class DeviceRetiredException : AmazonBraketException { /// <summary> /// Constructs a new DeviceRetiredException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public DeviceRetiredException(string message) : base(message) {} /// <summary> /// Construct instance of DeviceRetiredException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public DeviceRetiredException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of DeviceRetiredException /// </summary> /// <param name="innerException"></param> public DeviceRetiredException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of DeviceRetiredException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public DeviceRetiredException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of DeviceRetiredException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public DeviceRetiredException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the DeviceRetiredException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected DeviceRetiredException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
124
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Braket.Model { /// <summary> /// Includes information about the device. /// </summary> public partial class DeviceSummary { private string _deviceArn; private string _deviceName; private DeviceStatus _deviceStatus; private DeviceType _deviceType; private string _providerName; /// <summary> /// Gets and sets the property DeviceArn. /// <para> /// The ARN of the device. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=256)] public string DeviceArn { get { return this._deviceArn; } set { this._deviceArn = value; } } // Check to see if DeviceArn property is set internal bool IsSetDeviceArn() { return this._deviceArn != null; } /// <summary> /// Gets and sets the property DeviceName. /// <para> /// The name of the device. /// </para> /// </summary> [AWSProperty(Required=true)] public string DeviceName { get { return this._deviceName; } set { this._deviceName = value; } } // Check to see if DeviceName property is set internal bool IsSetDeviceName() { return this._deviceName != null; } /// <summary> /// Gets and sets the property DeviceStatus. /// <para> /// The status of the device. /// </para> /// </summary> [AWSProperty(Required=true)] public DeviceStatus DeviceStatus { get { return this._deviceStatus; } set { this._deviceStatus = value; } } // Check to see if DeviceStatus property is set internal bool IsSetDeviceStatus() { return this._deviceStatus != null; } /// <summary> /// Gets and sets the property DeviceType. /// <para> /// The type of the device. /// </para> /// </summary> [AWSProperty(Required=true)] public DeviceType DeviceType { get { return this._deviceType; } set { this._deviceType = value; } } // Check to see if DeviceType property is set internal bool IsSetDeviceType() { return this._deviceType != null; } /// <summary> /// Gets and sets the property ProviderName. /// <para> /// The provider of the device. /// </para> /// </summary> [AWSProperty(Required=true)] public string ProviderName { get { return this._providerName; } set { this._providerName = value; } } // Check to see if ProviderName property is set internal bool IsSetProviderName() { return this._providerName != null; } } }
138
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Braket.Model { /// <summary> /// Container for the parameters to the GetDevice operation. /// Retrieves the devices available in Amazon Braket. /// /// <note> /// <para> /// For backwards compatibility with older versions of BraketSchemas, OpenQASM information /// is omitted from GetDevice API calls. To get this information the user-agent needs /// to present a recent version of the BraketSchemas (1.8.0 or later). The Braket SDK /// automatically reports this for you. If you do not see OpenQASM results in the GetDevice /// response when using a Braket SDK, you may need to set AWS_EXECUTION_ENV environment /// variable to configure user-agent. See the code examples provided below for how to /// do this for the AWS CLI, Boto3, and the Go, Java, and JavaScript/TypeScript SDKs. /// </para> /// </note> /// </summary> public partial class GetDeviceRequest : AmazonBraketRequest { private string _deviceArn; /// <summary> /// Gets and sets the property DeviceArn. /// <para> /// The ARN of the device to retrieve. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=256)] public string DeviceArn { get { return this._deviceArn; } set { this._deviceArn = value; } } // Check to see if DeviceArn property is set internal bool IsSetDeviceArn() { return this._deviceArn != null; } } }
71
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Braket.Model { /// <summary> /// This is the response object from the GetDevice operation. /// </summary> public partial class GetDeviceResponse : AmazonWebServiceResponse { private string _deviceArn; private string _deviceCapabilities; private string _deviceName; private DeviceStatus _deviceStatus; private DeviceType _deviceType; private string _providerName; /// <summary> /// Gets and sets the property DeviceArn. /// <para> /// The ARN of the device. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=256)] public string DeviceArn { get { return this._deviceArn; } set { this._deviceArn = value; } } // Check to see if DeviceArn property is set internal bool IsSetDeviceArn() { return this._deviceArn != null; } /// <summary> /// Gets and sets the property DeviceCapabilities. /// <para> /// Details about the capabilities of the device. /// </para> /// </summary> [AWSProperty(Required=true)] public string DeviceCapabilities { get { return this._deviceCapabilities; } set { this._deviceCapabilities = value; } } // Check to see if DeviceCapabilities property is set internal bool IsSetDeviceCapabilities() { return this._deviceCapabilities != null; } /// <summary> /// Gets and sets the property DeviceName. /// <para> /// The name of the device. /// </para> /// </summary> [AWSProperty(Required=true)] public string DeviceName { get { return this._deviceName; } set { this._deviceName = value; } } // Check to see if DeviceName property is set internal bool IsSetDeviceName() { return this._deviceName != null; } /// <summary> /// Gets and sets the property DeviceStatus. /// <para> /// The status of the device. /// </para> /// </summary> [AWSProperty(Required=true)] public DeviceStatus DeviceStatus { get { return this._deviceStatus; } set { this._deviceStatus = value; } } // Check to see if DeviceStatus property is set internal bool IsSetDeviceStatus() { return this._deviceStatus != null; } /// <summary> /// Gets and sets the property DeviceType. /// <para> /// The type of the device. /// </para> /// </summary> [AWSProperty(Required=true)] public DeviceType DeviceType { get { return this._deviceType; } set { this._deviceType = value; } } // Check to see if DeviceType property is set internal bool IsSetDeviceType() { return this._deviceType != null; } /// <summary> /// Gets and sets the property ProviderName. /// <para> /// The name of the partner company for the device. /// </para> /// </summary> [AWSProperty(Required=true)] public string ProviderName { get { return this._providerName; } set { this._providerName = value; } } // Check to see if ProviderName property is set internal bool IsSetProviderName() { return this._providerName != null; } } }
158
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Braket.Model { /// <summary> /// Container for the parameters to the GetJob operation. /// Retrieves the specified Amazon Braket job. /// </summary> public partial class GetJobRequest : AmazonBraketRequest { private string _jobArn; /// <summary> /// Gets and sets the property JobArn. /// <para> /// The ARN of the job to retrieve. /// </para> /// </summary> [AWSProperty(Required=true)] public string JobArn { get { return this._jobArn; } set { this._jobArn = value; } } // Check to see if JobArn property is set internal bool IsSetJobArn() { return this._jobArn != null; } } }
59
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Braket.Model { /// <summary> /// This is the response object from the GetJob operation. /// </summary> public partial class GetJobResponse : AmazonWebServiceResponse { private AlgorithmSpecification _algorithmSpecification; private int? _billableDuration; private JobCheckpointConfig _checkpointConfig; private DateTime? _createdAt; private DeviceConfig _deviceConfig; private DateTime? _endedAt; private List<JobEventDetails> _events = new List<JobEventDetails>(); private string _failureReason; private Dictionary<string, string> _hyperParameters = new Dictionary<string, string>(); private List<InputFileConfig> _inputDataConfig = new List<InputFileConfig>(); private InstanceConfig _instanceConfig; private string _jobArn; private string _jobName; private JobOutputDataConfig _outputDataConfig; private string _roleArn; private DateTime? _startedAt; private JobPrimaryStatus _status; private JobStoppingCondition _stoppingCondition; private Dictionary<string, string> _tags = new Dictionary<string, string>(); /// <summary> /// Gets and sets the property AlgorithmSpecification. /// <para> /// Definition of the Amazon Braket job created. Specifies the container image the job /// uses, information about the Python scripts used for entry and training, and the user-defined /// metrics used to evaluation the job. /// </para> /// </summary> [AWSProperty(Required=true)] public AlgorithmSpecification AlgorithmSpecification { get { return this._algorithmSpecification; } set { this._algorithmSpecification = value; } } // Check to see if AlgorithmSpecification property is set internal bool IsSetAlgorithmSpecification() { return this._algorithmSpecification != null; } /// <summary> /// Gets and sets the property BillableDuration. /// <para> /// The billable time the Amazon Braket job used to complete. /// </para> /// </summary> public int BillableDuration { get { return this._billableDuration.GetValueOrDefault(); } set { this._billableDuration = value; } } // Check to see if BillableDuration property is set internal bool IsSetBillableDuration() { return this._billableDuration.HasValue; } /// <summary> /// Gets and sets the property CheckpointConfig. /// <para> /// Information about the output locations for job checkpoint data. /// </para> /// </summary> public JobCheckpointConfig CheckpointConfig { get { return this._checkpointConfig; } set { this._checkpointConfig = value; } } // Check to see if CheckpointConfig property is set internal bool IsSetCheckpointConfig() { return this._checkpointConfig != null; } /// <summary> /// Gets and sets the property CreatedAt. /// <para> /// The date and time that the Amazon Braket job was created. /// </para> /// </summary> [AWSProperty(Required=true)] public DateTime CreatedAt { get { return this._createdAt.GetValueOrDefault(); } set { this._createdAt = value; } } // Check to see if CreatedAt property is set internal bool IsSetCreatedAt() { return this._createdAt.HasValue; } /// <summary> /// Gets and sets the property DeviceConfig. /// <para> /// The quantum processing unit (QPU) or simulator used to run the Amazon Braket job. /// </para> /// </summary> public DeviceConfig DeviceConfig { get { return this._deviceConfig; } set { this._deviceConfig = value; } } // Check to see if DeviceConfig property is set internal bool IsSetDeviceConfig() { return this._deviceConfig != null; } /// <summary> /// Gets and sets the property EndedAt. /// <para> /// The date and time that the Amazon Braket job ended. /// </para> /// </summary> public DateTime EndedAt { get { return this._endedAt.GetValueOrDefault(); } set { this._endedAt = value; } } // Check to see if EndedAt property is set internal bool IsSetEndedAt() { return this._endedAt.HasValue; } /// <summary> /// Gets and sets the property Events. /// <para> /// Details about the type and time events occurred related to the Amazon Braket job. /// </para> /// </summary> [AWSProperty(Min=0, Max=20)] public List<JobEventDetails> Events { get { return this._events; } set { this._events = value; } } // Check to see if Events property is set internal bool IsSetEvents() { return this._events != null && this._events.Count > 0; } /// <summary> /// Gets and sets the property FailureReason. /// <para> /// A description of the reason why an Amazon Braket job failed, if it failed. /// </para> /// </summary> [AWSProperty(Min=1, Max=1024)] public string FailureReason { get { return this._failureReason; } set { this._failureReason = value; } } // Check to see if FailureReason property is set internal bool IsSetFailureReason() { return this._failureReason != null; } /// <summary> /// Gets and sets the property HyperParameters. /// <para> /// Algorithm-specific parameters used by an Amazon Braket job that influence the quality /// of the traiing job. The values are set with a string of JSON key:value pairs, where /// the key is the name of the hyperparameter and the value is the value of th hyperparameter. /// </para> /// </summary> [AWSProperty(Min=0, Max=100)] public Dictionary<string, string> HyperParameters { get { return this._hyperParameters; } set { this._hyperParameters = value; } } // Check to see if HyperParameters property is set internal bool IsSetHyperParameters() { return this._hyperParameters != null && this._hyperParameters.Count > 0; } /// <summary> /// Gets and sets the property InputDataConfig. /// <para> /// A list of parameters that specify the name and type of input data and where it is /// located. /// </para> /// </summary> public List<InputFileConfig> InputDataConfig { get { return this._inputDataConfig; } set { this._inputDataConfig = value; } } // Check to see if InputDataConfig property is set internal bool IsSetInputDataConfig() { return this._inputDataConfig != null && this._inputDataConfig.Count > 0; } /// <summary> /// Gets and sets the property InstanceConfig. /// <para> /// The resource instances to use while running the hybrid job on Amazon Braket. /// </para> /// </summary> [AWSProperty(Required=true)] public InstanceConfig InstanceConfig { get { return this._instanceConfig; } set { this._instanceConfig = value; } } // Check to see if InstanceConfig property is set internal bool IsSetInstanceConfig() { return this._instanceConfig != null; } /// <summary> /// Gets and sets the property JobArn. /// <para> /// The ARN of the Amazon Braket job. /// </para> /// </summary> [AWSProperty(Required=true)] public string JobArn { get { return this._jobArn; } set { this._jobArn = value; } } // Check to see if JobArn property is set internal bool IsSetJobArn() { return this._jobArn != null; } /// <summary> /// Gets and sets the property JobName. /// <para> /// The name of the Amazon Braket job. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=50)] public string JobName { get { return this._jobName; } set { this._jobName = value; } } // Check to see if JobName property is set internal bool IsSetJobName() { return this._jobName != null; } /// <summary> /// Gets and sets the property OutputDataConfig. /// <para> /// The path to the S3 location where job artifacts are stored and the encryption key /// used to store them there. /// </para> /// </summary> [AWSProperty(Required=true)] public JobOutputDataConfig OutputDataConfig { get { return this._outputDataConfig; } set { this._outputDataConfig = value; } } // Check to see if OutputDataConfig property is set internal bool IsSetOutputDataConfig() { return this._outputDataConfig != null; } /// <summary> /// Gets and sets the property RoleArn. /// <para> /// The Amazon Resource Name (ARN) of an IAM role that Amazon Braket can assume to perform /// tasks on behalf of a user. It can access user resources, run an Amazon Braket job /// container on behalf of user, and output resources to the s3 buckets of a user. /// </para> /// </summary> [AWSProperty(Required=true)] public string RoleArn { get { return this._roleArn; } set { this._roleArn = value; } } // Check to see if RoleArn property is set internal bool IsSetRoleArn() { return this._roleArn != null; } /// <summary> /// Gets and sets the property StartedAt. /// <para> /// The date and time that the Amazon Braket job was started. /// </para> /// </summary> public DateTime StartedAt { get { return this._startedAt.GetValueOrDefault(); } set { this._startedAt = value; } } // Check to see if StartedAt property is set internal bool IsSetStartedAt() { return this._startedAt.HasValue; } /// <summary> /// Gets and sets the property Status. /// <para> /// The status of the Amazon Braket job. /// </para> /// </summary> [AWSProperty(Required=true)] public JobPrimaryStatus Status { get { return this._status; } set { this._status = value; } } // Check to see if Status property is set internal bool IsSetStatus() { return this._status != null; } /// <summary> /// Gets and sets the property StoppingCondition. /// <para> /// The user-defined criteria that specifies when to stop a job running. /// </para> /// </summary> public JobStoppingCondition StoppingCondition { get { return this._stoppingCondition; } set { this._stoppingCondition = value; } } // Check to see if StoppingCondition property is set internal bool IsSetStoppingCondition() { return this._stoppingCondition != null; } /// <summary> /// Gets and sets the property Tags. /// <para> /// A tag object that consists of a key and an optional value, used to manage metadata /// for Amazon Braket resources. /// </para> /// </summary> public Dictionary<string, string> Tags { get { return this._tags; } set { this._tags = value; } } // Check to see if Tags property is set internal bool IsSetTags() { return this._tags != null && this._tags.Count > 0; } } }
419
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Braket.Model { /// <summary> /// Container for the parameters to the GetQuantumTask operation. /// Retrieves the specified quantum task. /// </summary> public partial class GetQuantumTaskRequest : AmazonBraketRequest { private string _quantumTaskArn; /// <summary> /// Gets and sets the property QuantumTaskArn. /// <para> /// the ARN of the task to retrieve. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=256)] public string QuantumTaskArn { get { return this._quantumTaskArn; } set { this._quantumTaskArn = value; } } // Check to see if QuantumTaskArn property is set internal bool IsSetQuantumTaskArn() { return this._quantumTaskArn != null; } } }
59
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Braket.Model { /// <summary> /// This is the response object from the GetQuantumTask operation. /// </summary> public partial class GetQuantumTaskResponse : AmazonWebServiceResponse { private DateTime? _createdAt; private string _deviceArn; private string _deviceParameters; private DateTime? _endedAt; private string _failureReason; private string _jobArn; private string _outputs3Bucket; private string _outputs3Directory; private string _quantumTaskArn; private long? _shots; private QuantumTaskStatus _status; private Dictionary<string, string> _tags = new Dictionary<string, string>(); /// <summary> /// Gets and sets the property CreatedAt. /// <para> /// The time at which the task was created. /// </para> /// </summary> [AWSProperty(Required=true)] public DateTime CreatedAt { get { return this._createdAt.GetValueOrDefault(); } set { this._createdAt = value; } } // Check to see if CreatedAt property is set internal bool IsSetCreatedAt() { return this._createdAt.HasValue; } /// <summary> /// Gets and sets the property DeviceArn. /// <para> /// The ARN of the device the task was run on. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=256)] public string DeviceArn { get { return this._deviceArn; } set { this._deviceArn = value; } } // Check to see if DeviceArn property is set internal bool IsSetDeviceArn() { return this._deviceArn != null; } /// <summary> /// Gets and sets the property DeviceParameters. /// <para> /// The parameters for the device on which the task ran. /// </para> /// </summary> [AWSProperty(Required=true)] public string DeviceParameters { get { return this._deviceParameters; } set { this._deviceParameters = value; } } // Check to see if DeviceParameters property is set internal bool IsSetDeviceParameters() { return this._deviceParameters != null; } /// <summary> /// Gets and sets the property EndedAt. /// <para> /// The time at which the task ended. /// </para> /// </summary> public DateTime EndedAt { get { return this._endedAt.GetValueOrDefault(); } set { this._endedAt = value; } } // Check to see if EndedAt property is set internal bool IsSetEndedAt() { return this._endedAt.HasValue; } /// <summary> /// Gets and sets the property FailureReason. /// <para> /// The reason that a task failed. /// </para> /// </summary> public string FailureReason { get { return this._failureReason; } set { this._failureReason = value; } } // Check to see if FailureReason property is set internal bool IsSetFailureReason() { return this._failureReason != null; } /// <summary> /// Gets and sets the property JobArn. /// <para> /// The ARN of the Amazon Braket job associated with the quantum task. /// </para> /// </summary> public string JobArn { get { return this._jobArn; } set { this._jobArn = value; } } // Check to see if JobArn property is set internal bool IsSetJobArn() { return this._jobArn != null; } /// <summary> /// Gets and sets the property OutputS3Bucket. /// <para> /// The S3 bucket where task results are stored. /// </para> /// </summary> [AWSProperty(Required=true)] public string OutputS3Bucket { get { return this._outputs3Bucket; } set { this._outputs3Bucket = value; } } // Check to see if OutputS3Bucket property is set internal bool IsSetOutputS3Bucket() { return this._outputs3Bucket != null; } /// <summary> /// Gets and sets the property OutputS3Directory. /// <para> /// The folder in the S3 bucket where task results are stored. /// </para> /// </summary> [AWSProperty(Required=true)] public string OutputS3Directory { get { return this._outputs3Directory; } set { this._outputs3Directory = value; } } // Check to see if OutputS3Directory property is set internal bool IsSetOutputS3Directory() { return this._outputs3Directory != null; } /// <summary> /// Gets and sets the property QuantumTaskArn. /// <para> /// The ARN of the task. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=256)] public string QuantumTaskArn { get { return this._quantumTaskArn; } set { this._quantumTaskArn = value; } } // Check to see if QuantumTaskArn property is set internal bool IsSetQuantumTaskArn() { return this._quantumTaskArn != null; } /// <summary> /// Gets and sets the property Shots. /// <para> /// The number of shots used in the task. /// </para> /// </summary> [AWSProperty(Required=true)] public long Shots { get { return this._shots.GetValueOrDefault(); } set { this._shots = value; } } // Check to see if Shots property is set internal bool IsSetShots() { return this._shots.HasValue; } /// <summary> /// Gets and sets the property Status. /// <para> /// The status of the task. /// </para> /// </summary> [AWSProperty(Required=true)] public QuantumTaskStatus Status { get { return this._status; } set { this._status = value; } } // Check to see if Status property is set internal bool IsSetStatus() { return this._status != null; } /// <summary> /// Gets and sets the property Tags. /// <para> /// The tags that belong to this task. /// </para> /// </summary> public Dictionary<string, string> Tags { get { return this._tags; } set { this._tags = value; } } // Check to see if Tags property is set internal bool IsSetTags() { return this._tags != null && this._tags.Count > 0; } } }
274
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Braket.Model { /// <summary> /// A list of parameters that specify the input channels, type of input data, and where /// it is located. /// </summary> public partial class InputFileConfig { private string _channelName; private string _contentType; private DataSource _dataSource; /// <summary> /// Gets and sets the property ChannelName. /// <para> /// A named input source that an Amazon Braket job can consume. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=64)] public string ChannelName { get { return this._channelName; } set { this._channelName = value; } } // Check to see if ChannelName property is set internal bool IsSetChannelName() { return this._channelName != null; } /// <summary> /// Gets and sets the property ContentType. /// <para> /// The MIME type of the data. /// </para> /// </summary> [AWSProperty(Min=1, Max=256)] public string ContentType { get { return this._contentType; } set { this._contentType = value; } } // Check to see if ContentType property is set internal bool IsSetContentType() { return this._contentType != null; } /// <summary> /// Gets and sets the property DataSource. /// <para> /// The location of the channel data. /// </para> /// </summary> [AWSProperty(Required=true)] public DataSource DataSource { get { return this._dataSource; } set { this._dataSource = value; } } // Check to see if DataSource property is set internal bool IsSetDataSource() { return this._dataSource != null; } } }
99
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Braket.Model { /// <summary> /// Configures the resource instances to use while running the Amazon Braket hybrid job /// on Amazon Braket. /// </summary> public partial class InstanceConfig { private int? _instanceCount; private InstanceType _instanceType; private int? _volumeSizeInGb; /// <summary> /// Gets and sets the property InstanceCount. /// <para> /// Configures the number of resource instances to use while running an Amazon Braket /// job on Amazon Braket. The default value is 1. /// </para> /// </summary> [AWSProperty(Min=1)] public int InstanceCount { get { return this._instanceCount.GetValueOrDefault(); } set { this._instanceCount = value; } } // Check to see if InstanceCount property is set internal bool IsSetInstanceCount() { return this._instanceCount.HasValue; } /// <summary> /// Gets and sets the property InstanceType. /// <para> /// Configures the type resource instances to use while running an Amazon Braket hybrid /// job. /// </para> /// </summary> [AWSProperty(Required=true)] public InstanceType InstanceType { get { return this._instanceType; } set { this._instanceType = value; } } // Check to see if InstanceType property is set internal bool IsSetInstanceType() { return this._instanceType != null; } /// <summary> /// Gets and sets the property VolumeSizeInGb. /// <para> /// The size of the storage volume, in GB, that user wants to provision. /// </para> /// </summary> [AWSProperty(Required=true, Min=1)] public int VolumeSizeInGb { get { return this._volumeSizeInGb.GetValueOrDefault(); } set { this._volumeSizeInGb = value; } } // Check to see if VolumeSizeInGb property is set internal bool IsSetVolumeSizeInGb() { return this._volumeSizeInGb.HasValue; } } }
101
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Braket.Model { /// <summary> /// The request processing has failed because of an unknown error, exception, or failure. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class InternalServiceException : AmazonBraketException { /// <summary> /// Constructs a new InternalServiceException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public InternalServiceException(string message) : base(message) {} /// <summary> /// Construct instance of InternalServiceException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public InternalServiceException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of InternalServiceException /// </summary> /// <param name="innerException"></param> public InternalServiceException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of InternalServiceException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public InternalServiceException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of InternalServiceException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public InternalServiceException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the InternalServiceException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected InternalServiceException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
124
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Braket.Model { /// <summary> /// Contains information about the output locations for job checkpoint data. /// </summary> public partial class JobCheckpointConfig { private string _localPath; private string _s3Uri; /// <summary> /// Gets and sets the property LocalPath. /// <para> /// (Optional) The local directory where checkpoints are written. The default directory /// is <code>/opt/braket/checkpoints/</code>. /// </para> /// </summary> [AWSProperty(Min=1, Max=4096)] public string LocalPath { get { return this._localPath; } set { this._localPath = value; } } // Check to see if LocalPath property is set internal bool IsSetLocalPath() { return this._localPath != null; } /// <summary> /// Gets and sets the property S3Uri. /// <para> /// Identifies the S3 path where you want Amazon Braket to store checkpoints. For example, /// <code>s3://bucket-name/key-name-prefix</code>. /// </para> /// </summary> [AWSProperty(Required=true, Min=0, Max=1024)] public string S3Uri { get { return this._s3Uri; } set { this._s3Uri = value; } } // Check to see if S3Uri property is set internal bool IsSetS3Uri() { return this._s3Uri != null; } } }
80
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Braket.Model { /// <summary> /// Details about the type and time events occurred related to the Amazon Braket job. /// </summary> public partial class JobEventDetails { private JobEventType _eventType; private string _message; private DateTime? _timeOfEvent; /// <summary> /// Gets and sets the property EventType. /// <para> /// The type of event that occurred related to the Amazon Braket job. /// </para> /// </summary> public JobEventType EventType { get { return this._eventType; } set { this._eventType = value; } } // Check to see if EventType property is set internal bool IsSetEventType() { return this._eventType != null; } /// <summary> /// Gets and sets the property Message. /// <para> /// A message describing the event that occurred related to the Amazon Braket job. /// </para> /// </summary> [AWSProperty(Min=0, Max=2500)] public string Message { get { return this._message; } set { this._message = value; } } // Check to see if Message property is set internal bool IsSetMessage() { return this._message != null; } /// <summary> /// Gets and sets the property TimeOfEvent. /// <para> /// TThe type of event that occurred related to the Amazon Braket job. /// </para> /// </summary> public DateTime TimeOfEvent { get { return this._timeOfEvent.GetValueOrDefault(); } set { this._timeOfEvent = value; } } // Check to see if TimeOfEvent property is set internal bool IsSetTimeOfEvent() { return this._timeOfEvent.HasValue; } } }
96
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Braket.Model { /// <summary> /// Specifies the path to the S3 location where you want to store job artifacts and the /// encryption key used to store them. /// </summary> public partial class JobOutputDataConfig { private string _kmsKeyId; private string _s3Path; /// <summary> /// Gets and sets the property KmsKeyId. /// <para> /// The AWS Key Management Service (AWS KMS) key that Amazon Braket uses to encrypt the /// job training artifacts at rest using Amazon S3 server-side encryption. /// </para> /// </summary> [AWSProperty(Min=1, Max=2048)] public string KmsKeyId { get { return this._kmsKeyId; } set { this._kmsKeyId = value; } } // Check to see if KmsKeyId property is set internal bool IsSetKmsKeyId() { return this._kmsKeyId != null; } /// <summary> /// Gets and sets the property S3Path. /// <para> /// Identifies the S3 path where you want Amazon Braket to store the job training artifacts. /// For example, <code>s3://bucket-name/key-name-prefix</code>. /// </para> /// </summary> [AWSProperty(Required=true, Min=0, Max=1024)] public string S3Path { get { return this._s3Path; } set { this._s3Path = value; } } // Check to see if S3Path property is set internal bool IsSetS3Path() { return this._s3Path != null; } } }
81
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Braket.Model { /// <summary> /// Specifies limits for how long an Amazon Braket job can run. /// </summary> public partial class JobStoppingCondition { private int? _maxRuntimeInSeconds; /// <summary> /// Gets and sets the property MaxRuntimeInSeconds. /// <para> /// The maximum length of time, in seconds, that an Amazon Braket job can run. /// </para> /// </summary> [AWSProperty(Min=1, Max=432000)] public int MaxRuntimeInSeconds { get { return this._maxRuntimeInSeconds.GetValueOrDefault(); } set { this._maxRuntimeInSeconds = value; } } // Check to see if MaxRuntimeInSeconds property is set internal bool IsSetMaxRuntimeInSeconds() { return this._maxRuntimeInSeconds.HasValue; } } }
58
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Braket.Model { /// <summary> /// Provides summary information about an Amazon Braket job. /// </summary> public partial class JobSummary { private DateTime? _createdAt; private string _device; private DateTime? _endedAt; private string _jobArn; private string _jobName; private DateTime? _startedAt; private JobPrimaryStatus _status; private Dictionary<string, string> _tags = new Dictionary<string, string>(); /// <summary> /// Gets and sets the property CreatedAt. /// <para> /// The date and time that the Amazon Braket job was created. /// </para> /// </summary> [AWSProperty(Required=true)] public DateTime CreatedAt { get { return this._createdAt.GetValueOrDefault(); } set { this._createdAt = value; } } // Check to see if CreatedAt property is set internal bool IsSetCreatedAt() { return this._createdAt.HasValue; } /// <summary> /// Gets and sets the property Device. /// <para> /// Provides summary information about the primary device used by an Amazon Braket job. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=256)] public string Device { get { return this._device; } set { this._device = value; } } // Check to see if Device property is set internal bool IsSetDevice() { return this._device != null; } /// <summary> /// Gets and sets the property EndedAt. /// <para> /// The date and time that the Amazon Braket job ended. /// </para> /// </summary> public DateTime EndedAt { get { return this._endedAt.GetValueOrDefault(); } set { this._endedAt = value; } } // Check to see if EndedAt property is set internal bool IsSetEndedAt() { return this._endedAt.HasValue; } /// <summary> /// Gets and sets the property JobArn. /// <para> /// The ARN of the Amazon Braket job. /// </para> /// </summary> [AWSProperty(Required=true)] public string JobArn { get { return this._jobArn; } set { this._jobArn = value; } } // Check to see if JobArn property is set internal bool IsSetJobArn() { return this._jobArn != null; } /// <summary> /// Gets and sets the property JobName. /// <para> /// The name of the Amazon Braket job. /// </para> /// </summary> [AWSProperty(Required=true)] public string JobName { get { return this._jobName; } set { this._jobName = value; } } // Check to see if JobName property is set internal bool IsSetJobName() { return this._jobName != null; } /// <summary> /// Gets and sets the property StartedAt. /// <para> /// The date and time that the Amazon Braket job was started. /// </para> /// </summary> public DateTime StartedAt { get { return this._startedAt.GetValueOrDefault(); } set { this._startedAt = value; } } // Check to see if StartedAt property is set internal bool IsSetStartedAt() { return this._startedAt.HasValue; } /// <summary> /// Gets and sets the property Status. /// <para> /// The status of the Amazon Braket job. /// </para> /// </summary> [AWSProperty(Required=true)] public JobPrimaryStatus Status { get { return this._status; } set { this._status = value; } } // Check to see if Status property is set internal bool IsSetStatus() { return this._status != null; } /// <summary> /// Gets and sets the property Tags. /// <para> /// A tag object that consists of a key and an optional value, used to manage metadata /// for Amazon Braket resources. /// </para> /// </summary> public Dictionary<string, string> Tags { get { return this._tags; } set { this._tags = value; } } // Check to see if Tags property is set internal bool IsSetTags() { return this._tags != null && this._tags.Count > 0; } } }
196
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Braket.Model { /// <summary> /// Container for the parameters to the ListTagsForResource operation. /// Shows the tags associated with this resource. /// </summary> public partial class ListTagsForResourceRequest : AmazonBraketRequest { private string _resourceArn; /// <summary> /// Gets and sets the property ResourceArn. /// <para> /// Specify the <code>resourceArn</code> for the resource whose tags to display. /// </para> /// </summary> [AWSProperty(Required=true)] public string ResourceArn { get { return this._resourceArn; } set { this._resourceArn = value; } } // Check to see if ResourceArn property is set internal bool IsSetResourceArn() { return this._resourceArn != null; } } }
59
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Braket.Model { /// <summary> /// This is the response object from the ListTagsForResource operation. /// </summary> public partial class ListTagsForResourceResponse : AmazonWebServiceResponse { private Dictionary<string, string> _tags = new Dictionary<string, string>(); /// <summary> /// Gets and sets the property Tags. /// <para> /// Displays the key, value pairs of tags associated with this resource. /// </para> /// </summary> public Dictionary<string, string> Tags { get { return this._tags; } set { this._tags = value; } } // Check to see if Tags property is set internal bool IsSetTags() { return this._tags != null && this._tags.Count > 0; } } }
57
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Braket.Model { /// <summary> /// Includes information about a quantum task. /// </summary> public partial class QuantumTaskSummary { private DateTime? _createdAt; private string _deviceArn; private DateTime? _endedAt; private string _outputs3Bucket; private string _outputs3Directory; private string _quantumTaskArn; private long? _shots; private QuantumTaskStatus _status; private Dictionary<string, string> _tags = new Dictionary<string, string>(); /// <summary> /// Gets and sets the property CreatedAt. /// <para> /// The time at which the task was created. /// </para> /// </summary> [AWSProperty(Required=true)] public DateTime CreatedAt { get { return this._createdAt.GetValueOrDefault(); } set { this._createdAt = value; } } // Check to see if CreatedAt property is set internal bool IsSetCreatedAt() { return this._createdAt.HasValue; } /// <summary> /// Gets and sets the property DeviceArn. /// <para> /// The ARN of the device the task ran on. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=256)] public string DeviceArn { get { return this._deviceArn; } set { this._deviceArn = value; } } // Check to see if DeviceArn property is set internal bool IsSetDeviceArn() { return this._deviceArn != null; } /// <summary> /// Gets and sets the property EndedAt. /// <para> /// The time at which the task finished. /// </para> /// </summary> public DateTime EndedAt { get { return this._endedAt.GetValueOrDefault(); } set { this._endedAt = value; } } // Check to see if EndedAt property is set internal bool IsSetEndedAt() { return this._endedAt.HasValue; } /// <summary> /// Gets and sets the property OutputS3Bucket. /// <para> /// The S3 bucket where the task result file is stored.. /// </para> /// </summary> [AWSProperty(Required=true)] public string OutputS3Bucket { get { return this._outputs3Bucket; } set { this._outputs3Bucket = value; } } // Check to see if OutputS3Bucket property is set internal bool IsSetOutputS3Bucket() { return this._outputs3Bucket != null; } /// <summary> /// Gets and sets the property OutputS3Directory. /// <para> /// The folder in the S3 bucket where the task result file is stored. /// </para> /// </summary> [AWSProperty(Required=true)] public string OutputS3Directory { get { return this._outputs3Directory; } set { this._outputs3Directory = value; } } // Check to see if OutputS3Directory property is set internal bool IsSetOutputS3Directory() { return this._outputs3Directory != null; } /// <summary> /// Gets and sets the property QuantumTaskArn. /// <para> /// The ARN of the task. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=256)] public string QuantumTaskArn { get { return this._quantumTaskArn; } set { this._quantumTaskArn = value; } } // Check to see if QuantumTaskArn property is set internal bool IsSetQuantumTaskArn() { return this._quantumTaskArn != null; } /// <summary> /// Gets and sets the property Shots. /// <para> /// The shots used for the task. /// </para> /// </summary> [AWSProperty(Required=true)] public long Shots { get { return this._shots.GetValueOrDefault(); } set { this._shots = value; } } // Check to see if Shots property is set internal bool IsSetShots() { return this._shots.HasValue; } /// <summary> /// Gets and sets the property Status. /// <para> /// The status of the task. /// </para> /// </summary> [AWSProperty(Required=true)] public QuantumTaskStatus Status { get { return this._status; } set { this._status = value; } } // Check to see if Status property is set internal bool IsSetStatus() { return this._status != null; } /// <summary> /// Gets and sets the property Tags. /// <para> /// Displays the key, value pairs of tags associated with this quantum task. /// </para> /// </summary> public Dictionary<string, string> Tags { get { return this._tags; } set { this._tags = value; } } // Check to see if Tags property is set internal bool IsSetTags() { return this._tags != null && this._tags.Count > 0; } } }
216
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Braket.Model { /// <summary> /// The specified resource was not found. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class ResourceNotFoundException : AmazonBraketException { /// <summary> /// Constructs a new ResourceNotFoundException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public ResourceNotFoundException(string message) : base(message) {} /// <summary> /// Construct instance of ResourceNotFoundException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public ResourceNotFoundException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of ResourceNotFoundException /// </summary> /// <param name="innerException"></param> public ResourceNotFoundException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of ResourceNotFoundException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ResourceNotFoundException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of ResourceNotFoundException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ResourceNotFoundException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the ResourceNotFoundException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected ResourceNotFoundException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
124
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Braket.Model { /// <summary> /// Information about the data stored in Amazon S3 used by the Amazon Braket job. /// </summary> public partial class S3DataSource { private string _s3Uri; /// <summary> /// Gets and sets the property S3Uri. /// <para> /// Depending on the value specified for the <code>S3DataType</code>, identifies either /// a key name prefix or a manifest that locates the S3 data source. /// </para> /// </summary> [AWSProperty(Required=true, Min=0, Max=1024)] public string S3Uri { get { return this._s3Uri; } set { this._s3Uri = value; } } // Check to see if S3Uri property is set internal bool IsSetS3Uri() { return this._s3Uri != null; } } }
59
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Braket.Model { /// <summary> /// Contains information about the Python scripts used for entry and by an Amazon Braket /// job. /// </summary> public partial class ScriptModeConfig { private CompressionType _compressionType; private string _entryPoint; private string _s3Uri; /// <summary> /// Gets and sets the property CompressionType. /// <para> /// The type of compression used by the Python scripts for an Amazon Braket job. /// </para> /// </summary> public CompressionType CompressionType { get { return this._compressionType; } set { this._compressionType = value; } } // Check to see if CompressionType property is set internal bool IsSetCompressionType() { return this._compressionType != null; } /// <summary> /// Gets and sets the property EntryPoint. /// <para> /// The path to the Python script that serves as the entry point for an Amazon Braket /// job. /// </para> /// </summary> [AWSProperty(Required=true)] public string EntryPoint { get { return this._entryPoint; } set { this._entryPoint = value; } } // Check to see if EntryPoint property is set internal bool IsSetEntryPoint() { return this._entryPoint != null; } /// <summary> /// Gets and sets the property S3Uri. /// <para> /// The URI that specifies the S3 path to the Python script module that contains the training /// script used by an Amazon Braket job. /// </para> /// </summary> [AWSProperty(Required=true, Min=0, Max=1024)] public string S3Uri { get { return this._s3Uri; } set { this._s3Uri = value; } } // Check to see if S3Uri property is set internal bool IsSetS3Uri() { return this._s3Uri != null; } } }
100
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Braket.Model { /// <summary> /// The filter to use for searching devices. /// </summary> public partial class SearchDevicesFilter { private string _name; private List<string> _values = new List<string>(); /// <summary> /// Gets and sets the property Name. /// <para> /// The name to use to filter results. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=64)] public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } /// <summary> /// Gets and sets the property Values. /// <para> /// The values to use to filter results. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=10)] public List<string> Values { get { return this._values; } set { this._values = value; } } // Check to see if Values property is set internal bool IsSetValues() { return this._values != null && this._values.Count > 0; } } }
78
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Braket.Model { /// <summary> /// Container for the parameters to the SearchDevices operation. /// Searches for devices using the specified filters. /// </summary> public partial class SearchDevicesRequest : AmazonBraketRequest { private List<SearchDevicesFilter> _filters = new List<SearchDevicesFilter>(); private int? _maxResults; private string _nextToken; /// <summary> /// Gets and sets the property Filters. /// <para> /// The filter values to use to search for a device. /// </para> /// </summary> [AWSProperty(Required=true, Min=0, Max=10)] public List<SearchDevicesFilter> Filters { get { return this._filters; } set { this._filters = value; } } // Check to see if Filters property is set internal bool IsSetFilters() { return this._filters != null && this._filters.Count > 0; } /// <summary> /// Gets and sets the property MaxResults. /// <para> /// The maximum number of results to return in the response. /// </para> /// </summary> [AWSProperty(Min=1, Max=100)] public int MaxResults { get { return this._maxResults.GetValueOrDefault(); } set { this._maxResults = value; } } // Check to see if MaxResults property is set internal bool IsSetMaxResults() { return this._maxResults.HasValue; } /// <summary> /// Gets and sets the property NextToken. /// <para> /// A token used for pagination of results returned in the response. Use the token returned /// from the previous request continue results where the previous request ended. /// </para> /// </summary> public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } } }
99
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Braket.Model { /// <summary> /// This is the response object from the SearchDevices operation. /// </summary> public partial class SearchDevicesResponse : AmazonWebServiceResponse { private List<DeviceSummary> _devices = new List<DeviceSummary>(); private string _nextToken; /// <summary> /// Gets and sets the property Devices. /// <para> /// An array of <code>DeviceSummary</code> objects for devices that match the specified /// filter values. /// </para> /// </summary> [AWSProperty(Required=true)] public List<DeviceSummary> Devices { get { return this._devices; } set { this._devices = value; } } // Check to see if Devices property is set internal bool IsSetDevices() { return this._devices != null && this._devices.Count > 0; } /// <summary> /// Gets and sets the property NextToken. /// <para> /// A token used for pagination of results, or null if there are no additional results. /// Use the token value in a subsequent request to continue results where the previous /// request ended. /// </para> /// </summary> public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } } }
80
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Braket.Model { /// <summary> /// A filter used to search for Amazon Braket jobs. /// </summary> public partial class SearchJobsFilter { private string _name; private SearchJobsFilterOperator _operator; private List<string> _values = new List<string>(); /// <summary> /// Gets and sets the property Name. /// <para> /// The name to use for the jobs filter. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=64)] public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } /// <summary> /// Gets and sets the property Operator. /// <para> /// An operator to use for the jobs filter. /// </para> /// </summary> [AWSProperty(Required=true)] public SearchJobsFilterOperator Operator { get { return this._operator; } set { this._operator = value; } } // Check to see if Operator property is set internal bool IsSetOperator() { return this._operator != null; } /// <summary> /// Gets and sets the property Values. /// <para> /// The values to use for the jobs filter. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=10)] public List<string> Values { get { return this._values; } set { this._values = value; } } // Check to see if Values property is set internal bool IsSetValues() { return this._values != null && this._values.Count > 0; } } }
98
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Braket.Model { /// <summary> /// Container for the parameters to the SearchJobs operation. /// Searches for Amazon Braket jobs that match the specified filter values. /// </summary> public partial class SearchJobsRequest : AmazonBraketRequest { private List<SearchJobsFilter> _filters = new List<SearchJobsFilter>(); private int? _maxResults; private string _nextToken; /// <summary> /// Gets and sets the property Filters. /// <para> /// The filter values to use when searching for a job. /// </para> /// </summary> [AWSProperty(Required=true, Min=0, Max=10)] public List<SearchJobsFilter> Filters { get { return this._filters; } set { this._filters = value; } } // Check to see if Filters property is set internal bool IsSetFilters() { return this._filters != null && this._filters.Count > 0; } /// <summary> /// Gets and sets the property MaxResults. /// <para> /// The maximum number of results to return in the response. /// </para> /// </summary> [AWSProperty(Min=1, Max=100)] public int MaxResults { get { return this._maxResults.GetValueOrDefault(); } set { this._maxResults = value; } } // Check to see if MaxResults property is set internal bool IsSetMaxResults() { return this._maxResults.HasValue; } /// <summary> /// Gets and sets the property NextToken. /// <para> /// A token used for pagination of results returned in the response. Use the token returned /// from the previous request to continue results where the previous request ended. /// </para> /// </summary> public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } } }
99
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Braket.Model { /// <summary> /// This is the response object from the SearchJobs operation. /// </summary> public partial class SearchJobsResponse : AmazonWebServiceResponse { private List<JobSummary> _jobs = new List<JobSummary>(); private string _nextToken; /// <summary> /// Gets and sets the property Jobs. /// <para> /// An array of <code>JobSummary</code> objects for devices that match the specified filter /// values. /// </para> /// </summary> [AWSProperty(Required=true)] public List<JobSummary> Jobs { get { return this._jobs; } set { this._jobs = value; } } // Check to see if Jobs property is set internal bool IsSetJobs() { return this._jobs != null && this._jobs.Count > 0; } /// <summary> /// Gets and sets the property NextToken. /// <para> /// A token used for pagination of results, or <code>null</code> if there are no additional /// results. Use the token value in a subsequent request to continue results where the /// previous request ended. /// </para> /// </summary> public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } } }
80
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Braket.Model { /// <summary> /// A filter to use to search for tasks. /// </summary> public partial class SearchQuantumTasksFilter { private string _name; private SearchQuantumTasksFilterOperator _operator; private List<string> _values = new List<string>(); /// <summary> /// Gets and sets the property Name. /// <para> /// The name of the device used for the task. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=64)] public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } /// <summary> /// Gets and sets the property Operator. /// <para> /// An operator to use in the filter. /// </para> /// </summary> [AWSProperty(Required=true)] public SearchQuantumTasksFilterOperator Operator { get { return this._operator; } set { this._operator = value; } } // Check to see if Operator property is set internal bool IsSetOperator() { return this._operator != null; } /// <summary> /// Gets and sets the property Values. /// <para> /// The values to use for the filter. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=10)] public List<string> Values { get { return this._values; } set { this._values = value; } } // Check to see if Values property is set internal bool IsSetValues() { return this._values != null && this._values.Count > 0; } } }
98
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Braket.Model { /// <summary> /// Container for the parameters to the SearchQuantumTasks operation. /// Searches for tasks that match the specified filter values. /// </summary> public partial class SearchQuantumTasksRequest : AmazonBraketRequest { private List<SearchQuantumTasksFilter> _filters = new List<SearchQuantumTasksFilter>(); private int? _maxResults; private string _nextToken; /// <summary> /// Gets and sets the property Filters. /// <para> /// Array of <code>SearchQuantumTasksFilter</code> objects. /// </para> /// </summary> [AWSProperty(Required=true, Min=0, Max=10)] public List<SearchQuantumTasksFilter> Filters { get { return this._filters; } set { this._filters = value; } } // Check to see if Filters property is set internal bool IsSetFilters() { return this._filters != null && this._filters.Count > 0; } /// <summary> /// Gets and sets the property MaxResults. /// <para> /// Maximum number of results to return in the response. /// </para> /// </summary> [AWSProperty(Min=1, Max=100)] public int MaxResults { get { return this._maxResults.GetValueOrDefault(); } set { this._maxResults = value; } } // Check to see if MaxResults property is set internal bool IsSetMaxResults() { return this._maxResults.HasValue; } /// <summary> /// Gets and sets the property NextToken. /// <para> /// A token used for pagination of results returned in the response. Use the token returned /// from the previous request continue results where the previous request ended. /// </para> /// </summary> public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } } }
99
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Braket.Model { /// <summary> /// This is the response object from the SearchQuantumTasks operation. /// </summary> public partial class SearchQuantumTasksResponse : AmazonWebServiceResponse { private string _nextToken; private List<QuantumTaskSummary> _quantumTasks = new List<QuantumTaskSummary>(); /// <summary> /// Gets and sets the property NextToken. /// <para> /// A token used for pagination of results, or null if there are no additional results. /// Use the token value in a subsequent request to continue results where the previous /// request ended. /// </para> /// </summary> public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } /// <summary> /// Gets and sets the property QuantumTasks. /// <para> /// An array of <code>QuantumTaskSummary</code> objects for tasks that match the specified /// filters. /// </para> /// </summary> [AWSProperty(Required=true)] public List<QuantumTaskSummary> QuantumTasks { get { return this._quantumTasks; } set { this._quantumTasks = value; } } // Check to see if QuantumTasks property is set internal bool IsSetQuantumTasks() { return this._quantumTasks != null && this._quantumTasks.Count > 0; } } }
80
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Braket.Model { /// <summary> /// The request failed because a service quota is exceeded. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class ServiceQuotaExceededException : AmazonBraketException { /// <summary> /// Constructs a new ServiceQuotaExceededException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public ServiceQuotaExceededException(string message) : base(message) {} /// <summary> /// Construct instance of ServiceQuotaExceededException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public ServiceQuotaExceededException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of ServiceQuotaExceededException /// </summary> /// <param name="innerException"></param> public ServiceQuotaExceededException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of ServiceQuotaExceededException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ServiceQuotaExceededException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of ServiceQuotaExceededException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ServiceQuotaExceededException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the ServiceQuotaExceededException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected ServiceQuotaExceededException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
124
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Braket.Model { /// <summary> /// Container for the parameters to the TagResource operation. /// Add a tag to the specified resource. /// </summary> public partial class TagResourceRequest : AmazonBraketRequest { private string _resourceArn; private Dictionary<string, string> _tags = new Dictionary<string, string>(); /// <summary> /// Gets and sets the property ResourceArn. /// <para> /// Specify the <code>resourceArn</code> of the resource to which a tag will be added. /// </para> /// </summary> [AWSProperty(Required=true)] public string ResourceArn { get { return this._resourceArn; } set { this._resourceArn = value; } } // Check to see if ResourceArn property is set internal bool IsSetResourceArn() { return this._resourceArn != null; } /// <summary> /// Gets and sets the property Tags. /// <para> /// Specify the tags to add to the resource. /// </para> /// </summary> [AWSProperty(Required=true)] public Dictionary<string, string> Tags { get { return this._tags; } set { this._tags = value; } } // Check to see if Tags property is set internal bool IsSetTags() { return this._tags != null && this._tags.Count > 0; } } }
79
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Braket.Model { /// <summary> /// This is the response object from the TagResource operation. /// </summary> public partial class TagResourceResponse : AmazonWebServiceResponse { } }
38
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Braket.Model { /// <summary> /// The throttling rate limit is met. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class ThrottlingException : AmazonBraketException { /// <summary> /// Constructs a new ThrottlingException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public ThrottlingException(string message) : base(message) {} /// <summary> /// Construct instance of ThrottlingException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public ThrottlingException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of ThrottlingException /// </summary> /// <param name="innerException"></param> public ThrottlingException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of ThrottlingException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ThrottlingException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of ThrottlingException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ThrottlingException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the ThrottlingException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected ThrottlingException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
124
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Braket.Model { /// <summary> /// Container for the parameters to the UntagResource operation. /// Remove tags from a resource. /// </summary> public partial class UntagResourceRequest : AmazonBraketRequest { private string _resourceArn; private List<string> _tagKeys = new List<string>(); /// <summary> /// Gets and sets the property ResourceArn. /// <para> /// Specify the <code>resourceArn</code> for the resource from which to remove the tags. /// </para> /// </summary> [AWSProperty(Required=true)] public string ResourceArn { get { return this._resourceArn; } set { this._resourceArn = value; } } // Check to see if ResourceArn property is set internal bool IsSetResourceArn() { return this._resourceArn != null; } /// <summary> /// Gets and sets the property TagKeys. /// <para> /// Specify the keys for the tags to remove from the resource. /// </para> /// </summary> [AWSProperty(Required=true)] public List<string> TagKeys { get { return this._tagKeys; } set { this._tagKeys = value; } } // Check to see if TagKeys property is set internal bool IsSetTagKeys() { return this._tagKeys != null && this._tagKeys.Count > 0; } } }
79
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Braket.Model { /// <summary> /// This is the response object from the UntagResource operation. /// </summary> public partial class UntagResourceResponse : AmazonWebServiceResponse { } }
38
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Braket.Model { /// <summary> /// The input fails to satisfy the constraints specified by an AWS service. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class ValidationException : AmazonBraketException { /// <summary> /// Constructs a new ValidationException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public ValidationException(string message) : base(message) {} /// <summary> /// Construct instance of ValidationException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public ValidationException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of ValidationException /// </summary> /// <param name="innerException"></param> public ValidationException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of ValidationException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ValidationException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of ValidationException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ValidationException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the ValidationException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected ValidationException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
124
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.Braket.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Braket.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for AccessDeniedException Object /// </summary> public class AccessDeniedExceptionUnmarshaller : IErrorResponseUnmarshaller<AccessDeniedException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public AccessDeniedException Unmarshall(JsonUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public AccessDeniedException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); AccessDeniedException unmarshalledObject = new AccessDeniedException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static AccessDeniedExceptionUnmarshaller _instance = new AccessDeniedExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static AccessDeniedExceptionUnmarshaller Instance { get { return _instance; } } } }
85
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.Braket.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Braket.Model.Internal.MarshallTransformations { /// <summary> /// AlgorithmSpecification Marshaller /// </summary> public class AlgorithmSpecificationMarshaller : IRequestMarshaller<AlgorithmSpecification, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(AlgorithmSpecification requestObject, JsonMarshallerContext context) { if(requestObject.IsSetContainerImage()) { context.Writer.WritePropertyName("containerImage"); context.Writer.WriteObjectStart(); var marshaller = ContainerImageMarshaller.Instance; marshaller.Marshall(requestObject.ContainerImage, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetScriptModeConfig()) { context.Writer.WritePropertyName("scriptModeConfig"); context.Writer.WriteObjectStart(); var marshaller = ScriptModeConfigMarshaller.Instance; marshaller.Marshall(requestObject.ScriptModeConfig, context); context.Writer.WriteObjectEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static AlgorithmSpecificationMarshaller Instance = new AlgorithmSpecificationMarshaller(); } }
78
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.Braket.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Braket.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for AlgorithmSpecification Object /// </summary> public class AlgorithmSpecificationUnmarshaller : IUnmarshaller<AlgorithmSpecification, XmlUnmarshallerContext>, IUnmarshaller<AlgorithmSpecification, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> AlgorithmSpecification IUnmarshaller<AlgorithmSpecification, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public AlgorithmSpecification Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; AlgorithmSpecification unmarshalledObject = new AlgorithmSpecification(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("containerImage", targetDepth)) { var unmarshaller = ContainerImageUnmarshaller.Instance; unmarshalledObject.ContainerImage = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("scriptModeConfig", targetDepth)) { var unmarshaller = ScriptModeConfigUnmarshaller.Instance; unmarshalledObject.ScriptModeConfig = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static AlgorithmSpecificationUnmarshaller _instance = new AlgorithmSpecificationUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static AlgorithmSpecificationUnmarshaller Instance { get { return _instance; } } } }
98
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.Braket.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Braket.Model.Internal.MarshallTransformations { /// <summary> /// CancelJob Request Marshaller /// </summary> public class CancelJobRequestMarshaller : IMarshaller<IRequest, CancelJobRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((CancelJobRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(CancelJobRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.Braket"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2019-09-01"; request.HttpMethod = "PUT"; if (!publicRequest.IsSetJobArn()) throw new AmazonBraketException("Request object does not have required field JobArn set"); request.AddPathResource("{jobArn}", StringUtils.FromString(publicRequest.JobArn)); request.ResourcePath = "/job/{jobArn}/cancel"; return request; } private static CancelJobRequestMarshaller _instance = new CancelJobRequestMarshaller(); internal static CancelJobRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static CancelJobRequestMarshaller Instance { get { return _instance; } } } }
88
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.Braket.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Braket.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for CancelJob operation /// </summary> public class CancelJobResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { CancelJobResponse response = new CancelJobResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("cancellationStatus", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.CancellationStatus = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("jobArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.JobArn = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("AccessDeniedException")) { return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ConflictException")) { return ConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServiceException")) { return InternalServiceExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) { return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException")) { return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) { return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonBraketException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static CancelJobResponseUnmarshaller _instance = new CancelJobResponseUnmarshaller(); internal static CancelJobResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static CancelJobResponseUnmarshaller Instance { get { return _instance; } } } }
136
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.Braket.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Braket.Model.Internal.MarshallTransformations { /// <summary> /// CancelQuantumTask Request Marshaller /// </summary> public class CancelQuantumTaskRequestMarshaller : IMarshaller<IRequest, CancelQuantumTaskRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((CancelQuantumTaskRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(CancelQuantumTaskRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.Braket"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2019-09-01"; request.HttpMethod = "PUT"; if (!publicRequest.IsSetQuantumTaskArn()) throw new AmazonBraketException("Request object does not have required field QuantumTaskArn set"); request.AddPathResource("{quantumTaskArn}", StringUtils.FromString(publicRequest.QuantumTaskArn)); request.ResourcePath = "/quantum-task/{quantumTaskArn}/cancel"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetClientToken()) { context.Writer.WritePropertyName("clientToken"); context.Writer.Write(publicRequest.ClientToken); } else if(!(publicRequest.IsSetClientToken())) { context.Writer.WritePropertyName("clientToken"); context.Writer.Write(Guid.NewGuid().ToString()); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static CancelQuantumTaskRequestMarshaller _instance = new CancelQuantumTaskRequestMarshaller(); internal static CancelQuantumTaskRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static CancelQuantumTaskRequestMarshaller Instance { get { return _instance; } } } }
109
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.Braket.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Braket.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for CancelQuantumTask operation /// </summary> public class CancelQuantumTaskResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { CancelQuantumTaskResponse response = new CancelQuantumTaskResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("cancellationStatus", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.CancellationStatus = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("quantumTaskArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.QuantumTaskArn = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("AccessDeniedException")) { return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ConflictException")) { return ConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServiceException")) { return InternalServiceExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) { return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException")) { return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) { return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonBraketException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static CancelQuantumTaskResponseUnmarshaller _instance = new CancelQuantumTaskResponseUnmarshaller(); internal static CancelQuantumTaskResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static CancelQuantumTaskResponseUnmarshaller Instance { get { return _instance; } } } }
136
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.Braket.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Braket.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ConflictException Object /// </summary> public class ConflictExceptionUnmarshaller : IErrorResponseUnmarshaller<ConflictException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public ConflictException Unmarshall(JsonUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public ConflictException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); ConflictException unmarshalledObject = new ConflictException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static ConflictExceptionUnmarshaller _instance = new ConflictExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ConflictExceptionUnmarshaller Instance { get { return _instance; } } } }
85
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.Braket.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Braket.Model.Internal.MarshallTransformations { /// <summary> /// ContainerImage Marshaller /// </summary> public class ContainerImageMarshaller : IRequestMarshaller<ContainerImage, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(ContainerImage requestObject, JsonMarshallerContext context) { if(requestObject.IsSetUri()) { context.Writer.WritePropertyName("uri"); context.Writer.Write(requestObject.Uri); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static ContainerImageMarshaller Instance = new ContainerImageMarshaller(); } }
62
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.Braket.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Braket.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ContainerImage Object /// </summary> public class ContainerImageUnmarshaller : IUnmarshaller<ContainerImage, XmlUnmarshallerContext>, IUnmarshaller<ContainerImage, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> ContainerImage IUnmarshaller<ContainerImage, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public ContainerImage Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; ContainerImage unmarshalledObject = new ContainerImage(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("uri", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Uri = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static ContainerImageUnmarshaller _instance = new ContainerImageUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ContainerImageUnmarshaller Instance { get { return _instance; } } } }
92
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.Braket.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Braket.Model.Internal.MarshallTransformations { /// <summary> /// CreateJob Request Marshaller /// </summary> public class CreateJobRequestMarshaller : IMarshaller<IRequest, CreateJobRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((CreateJobRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(CreateJobRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.Braket"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2019-09-01"; request.HttpMethod = "POST"; request.ResourcePath = "/job"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetAlgorithmSpecification()) { context.Writer.WritePropertyName("algorithmSpecification"); context.Writer.WriteObjectStart(); var marshaller = AlgorithmSpecificationMarshaller.Instance; marshaller.Marshall(publicRequest.AlgorithmSpecification, context); context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetCheckpointConfig()) { context.Writer.WritePropertyName("checkpointConfig"); context.Writer.WriteObjectStart(); var marshaller = JobCheckpointConfigMarshaller.Instance; marshaller.Marshall(publicRequest.CheckpointConfig, context); context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetClientToken()) { context.Writer.WritePropertyName("clientToken"); context.Writer.Write(publicRequest.ClientToken); } else if(!(publicRequest.IsSetClientToken())) { context.Writer.WritePropertyName("clientToken"); context.Writer.Write(Guid.NewGuid().ToString()); } if(publicRequest.IsSetDeviceConfig()) { context.Writer.WritePropertyName("deviceConfig"); context.Writer.WriteObjectStart(); var marshaller = DeviceConfigMarshaller.Instance; marshaller.Marshall(publicRequest.DeviceConfig, context); context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetHyperParameters()) { context.Writer.WritePropertyName("hyperParameters"); context.Writer.WriteObjectStart(); foreach (var publicRequestHyperParametersKvp in publicRequest.HyperParameters) { context.Writer.WritePropertyName(publicRequestHyperParametersKvp.Key); var publicRequestHyperParametersValue = publicRequestHyperParametersKvp.Value; context.Writer.Write(publicRequestHyperParametersValue); } context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetInputDataConfig()) { context.Writer.WritePropertyName("inputDataConfig"); context.Writer.WriteArrayStart(); foreach(var publicRequestInputDataConfigListValue in publicRequest.InputDataConfig) { context.Writer.WriteObjectStart(); var marshaller = InputFileConfigMarshaller.Instance; marshaller.Marshall(publicRequestInputDataConfigListValue, context); context.Writer.WriteObjectEnd(); } context.Writer.WriteArrayEnd(); } if(publicRequest.IsSetInstanceConfig()) { context.Writer.WritePropertyName("instanceConfig"); context.Writer.WriteObjectStart(); var marshaller = InstanceConfigMarshaller.Instance; marshaller.Marshall(publicRequest.InstanceConfig, context); context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetJobName()) { context.Writer.WritePropertyName("jobName"); context.Writer.Write(publicRequest.JobName); } if(publicRequest.IsSetOutputDataConfig()) { context.Writer.WritePropertyName("outputDataConfig"); context.Writer.WriteObjectStart(); var marshaller = JobOutputDataConfigMarshaller.Instance; marshaller.Marshall(publicRequest.OutputDataConfig, context); context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetRoleArn()) { context.Writer.WritePropertyName("roleArn"); context.Writer.Write(publicRequest.RoleArn); } if(publicRequest.IsSetStoppingCondition()) { context.Writer.WritePropertyName("stoppingCondition"); context.Writer.WriteObjectStart(); var marshaller = JobStoppingConditionMarshaller.Instance; marshaller.Marshall(publicRequest.StoppingCondition, context); context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetTags()) { context.Writer.WritePropertyName("tags"); context.Writer.WriteObjectStart(); foreach (var publicRequestTagsKvp in publicRequest.Tags) { context.Writer.WritePropertyName(publicRequestTagsKvp.Key); var publicRequestTagsValue = publicRequestTagsKvp.Value; context.Writer.Write(publicRequestTagsValue); } context.Writer.WriteObjectEnd(); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static CreateJobRequestMarshaller _instance = new CreateJobRequestMarshaller(); internal static CreateJobRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static CreateJobRequestMarshaller Instance { get { return _instance; } } } }
228
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.Braket.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Braket.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for CreateJob operation /// </summary> public class CreateJobResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { CreateJobResponse response = new CreateJobResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("jobArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.JobArn = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("AccessDeniedException")) { return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ConflictException")) { return ConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("DeviceRetiredException")) { return DeviceRetiredExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServiceException")) { return InternalServiceExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceQuotaExceededException")) { return ServiceQuotaExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException")) { return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) { return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonBraketException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static CreateJobResponseUnmarshaller _instance = new CreateJobResponseUnmarshaller(); internal static CreateJobResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static CreateJobResponseUnmarshaller Instance { get { return _instance; } } } }
134
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.Braket.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Braket.Model.Internal.MarshallTransformations { /// <summary> /// CreateQuantumTask Request Marshaller /// </summary> public class CreateQuantumTaskRequestMarshaller : IMarshaller<IRequest, CreateQuantumTaskRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((CreateQuantumTaskRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(CreateQuantumTaskRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.Braket"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2019-09-01"; request.HttpMethod = "POST"; request.ResourcePath = "/quantum-task"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetAction()) { context.Writer.WritePropertyName("action"); context.Writer.Write(publicRequest.Action); } if(publicRequest.IsSetClientToken()) { context.Writer.WritePropertyName("clientToken"); context.Writer.Write(publicRequest.ClientToken); } else if(!(publicRequest.IsSetClientToken())) { context.Writer.WritePropertyName("clientToken"); context.Writer.Write(Guid.NewGuid().ToString()); } if(publicRequest.IsSetDeviceArn()) { context.Writer.WritePropertyName("deviceArn"); context.Writer.Write(publicRequest.DeviceArn); } if(publicRequest.IsSetDeviceParameters()) { context.Writer.WritePropertyName("deviceParameters"); context.Writer.Write(publicRequest.DeviceParameters); } if(publicRequest.IsSetJobToken()) { context.Writer.WritePropertyName("jobToken"); context.Writer.Write(publicRequest.JobToken); } if(publicRequest.IsSetOutputS3Bucket()) { context.Writer.WritePropertyName("outputS3Bucket"); context.Writer.Write(publicRequest.OutputS3Bucket); } if(publicRequest.IsSetOutputS3KeyPrefix()) { context.Writer.WritePropertyName("outputS3KeyPrefix"); context.Writer.Write(publicRequest.OutputS3KeyPrefix); } if(publicRequest.IsSetShots()) { context.Writer.WritePropertyName("shots"); context.Writer.Write(publicRequest.Shots); } if(publicRequest.IsSetTags()) { context.Writer.WritePropertyName("tags"); context.Writer.WriteObjectStart(); foreach (var publicRequestTagsKvp in publicRequest.Tags) { context.Writer.WritePropertyName(publicRequestTagsKvp.Key); var publicRequestTagsValue = publicRequestTagsKvp.Value; context.Writer.Write(publicRequestTagsValue); } context.Writer.WriteObjectEnd(); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static CreateQuantumTaskRequestMarshaller _instance = new CreateQuantumTaskRequestMarshaller(); internal static CreateQuantumTaskRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static CreateQuantumTaskRequestMarshaller Instance { get { return _instance; } } } }
162
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.Braket.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Braket.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for CreateQuantumTask operation /// </summary> public class CreateQuantumTaskResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { CreateQuantumTaskResponse response = new CreateQuantumTaskResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("quantumTaskArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.QuantumTaskArn = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("AccessDeniedException")) { return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("DeviceOfflineException")) { return DeviceOfflineExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("DeviceRetiredException")) { return DeviceRetiredExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServiceException")) { return InternalServiceExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceQuotaExceededException")) { return ServiceQuotaExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException")) { return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) { return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonBraketException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static CreateQuantumTaskResponseUnmarshaller _instance = new CreateQuantumTaskResponseUnmarshaller(); internal static CreateQuantumTaskResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static CreateQuantumTaskResponseUnmarshaller Instance { get { return _instance; } } } }
134
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.Braket.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Braket.Model.Internal.MarshallTransformations { /// <summary> /// DataSource Marshaller /// </summary> public class DataSourceMarshaller : IRequestMarshaller<DataSource, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(DataSource requestObject, JsonMarshallerContext context) { if(requestObject.IsSetS3DataSource()) { context.Writer.WritePropertyName("s3DataSource"); context.Writer.WriteObjectStart(); var marshaller = S3DataSourceMarshaller.Instance; marshaller.Marshall(requestObject.S3DataSource, context); context.Writer.WriteObjectEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static DataSourceMarshaller Instance = new DataSourceMarshaller(); } }
67
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.Braket.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Braket.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for DataSource Object /// </summary> public class DataSourceUnmarshaller : IUnmarshaller<DataSource, XmlUnmarshallerContext>, IUnmarshaller<DataSource, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> DataSource IUnmarshaller<DataSource, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public DataSource Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; DataSource unmarshalledObject = new DataSource(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("s3DataSource", targetDepth)) { var unmarshaller = S3DataSourceUnmarshaller.Instance; unmarshalledObject.S3DataSource = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static DataSourceUnmarshaller _instance = new DataSourceUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static DataSourceUnmarshaller Instance { get { return _instance; } } } }
92
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.Braket.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Braket.Model.Internal.MarshallTransformations { /// <summary> /// DeviceConfig Marshaller /// </summary> public class DeviceConfigMarshaller : IRequestMarshaller<DeviceConfig, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(DeviceConfig requestObject, JsonMarshallerContext context) { if(requestObject.IsSetDevice()) { context.Writer.WritePropertyName("device"); context.Writer.Write(requestObject.Device); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static DeviceConfigMarshaller Instance = new DeviceConfigMarshaller(); } }
62
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.Braket.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Braket.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for DeviceConfig Object /// </summary> public class DeviceConfigUnmarshaller : IUnmarshaller<DeviceConfig, XmlUnmarshallerContext>, IUnmarshaller<DeviceConfig, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> DeviceConfig IUnmarshaller<DeviceConfig, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public DeviceConfig Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; DeviceConfig unmarshalledObject = new DeviceConfig(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("device", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Device = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static DeviceConfigUnmarshaller _instance = new DeviceConfigUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static DeviceConfigUnmarshaller Instance { get { return _instance; } } } }
92
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.Braket.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Braket.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for DeviceOfflineException Object /// </summary> public class DeviceOfflineExceptionUnmarshaller : IErrorResponseUnmarshaller<DeviceOfflineException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public DeviceOfflineException Unmarshall(JsonUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public DeviceOfflineException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); DeviceOfflineException unmarshalledObject = new DeviceOfflineException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static DeviceOfflineExceptionUnmarshaller _instance = new DeviceOfflineExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static DeviceOfflineExceptionUnmarshaller Instance { get { return _instance; } } } }
85
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.Braket.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Braket.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for DeviceRetiredException Object /// </summary> public class DeviceRetiredExceptionUnmarshaller : IErrorResponseUnmarshaller<DeviceRetiredException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public DeviceRetiredException Unmarshall(JsonUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public DeviceRetiredException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); DeviceRetiredException unmarshalledObject = new DeviceRetiredException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static DeviceRetiredExceptionUnmarshaller _instance = new DeviceRetiredExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static DeviceRetiredExceptionUnmarshaller Instance { get { return _instance; } } } }
85
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.Braket.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Braket.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for DeviceSummary Object /// </summary> public class DeviceSummaryUnmarshaller : IUnmarshaller<DeviceSummary, XmlUnmarshallerContext>, IUnmarshaller<DeviceSummary, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> DeviceSummary IUnmarshaller<DeviceSummary, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public DeviceSummary Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; DeviceSummary unmarshalledObject = new DeviceSummary(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("deviceArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.DeviceArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("deviceName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.DeviceName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("deviceStatus", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.DeviceStatus = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("deviceType", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.DeviceType = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("providerName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ProviderName = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static DeviceSummaryUnmarshaller _instance = new DeviceSummaryUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static DeviceSummaryUnmarshaller Instance { get { return _instance; } } } }
116
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.Braket.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Braket.Model.Internal.MarshallTransformations { /// <summary> /// GetDevice Request Marshaller /// </summary> public class GetDeviceRequestMarshaller : IMarshaller<IRequest, GetDeviceRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((GetDeviceRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(GetDeviceRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.Braket"); request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2019-09-01"; request.HttpMethod = "GET"; if (!publicRequest.IsSetDeviceArn()) throw new AmazonBraketException("Request object does not have required field DeviceArn set"); request.AddPathResource("{deviceArn}", StringUtils.FromString(publicRequest.DeviceArn)); request.ResourcePath = "/device/{deviceArn}"; return request; } private static GetDeviceRequestMarshaller _instance = new GetDeviceRequestMarshaller(); internal static GetDeviceRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static GetDeviceRequestMarshaller Instance { get { return _instance; } } } }
87
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.Braket.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Braket.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for GetDevice operation /// </summary> public class GetDeviceResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { GetDeviceResponse response = new GetDeviceResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("deviceArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.DeviceArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("deviceCapabilities", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.DeviceCapabilities = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("deviceName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.DeviceName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("deviceStatus", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.DeviceStatus = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("deviceType", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.DeviceType = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("providerName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.ProviderName = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("AccessDeniedException")) { return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServiceException")) { return InternalServiceExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) { return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException")) { return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) { return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonBraketException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static GetDeviceResponseUnmarshaller _instance = new GetDeviceResponseUnmarshaller(); internal static GetDeviceResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static GetDeviceResponseUnmarshaller Instance { get { return _instance; } } } }
156
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.Braket.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Braket.Model.Internal.MarshallTransformations { /// <summary> /// GetJob Request Marshaller /// </summary> public class GetJobRequestMarshaller : IMarshaller<IRequest, GetJobRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((GetJobRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(GetJobRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.Braket"); request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2019-09-01"; request.HttpMethod = "GET"; if (!publicRequest.IsSetJobArn()) throw new AmazonBraketException("Request object does not have required field JobArn set"); request.AddPathResource("{jobArn}", StringUtils.FromString(publicRequest.JobArn)); request.ResourcePath = "/job/{jobArn}"; return request; } private static GetJobRequestMarshaller _instance = new GetJobRequestMarshaller(); internal static GetJobRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static GetJobRequestMarshaller Instance { get { return _instance; } } } }
87
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.Braket.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Braket.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for GetJob operation /// </summary> public class GetJobResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { GetJobResponse response = new GetJobResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("algorithmSpecification", targetDepth)) { var unmarshaller = AlgorithmSpecificationUnmarshaller.Instance; response.AlgorithmSpecification = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("billableDuration", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; response.BillableDuration = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("checkpointConfig", targetDepth)) { var unmarshaller = JobCheckpointConfigUnmarshaller.Instance; response.CheckpointConfig = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("createdAt", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; response.CreatedAt = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("deviceConfig", targetDepth)) { var unmarshaller = DeviceConfigUnmarshaller.Instance; response.DeviceConfig = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("endedAt", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; response.EndedAt = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("events", targetDepth)) { var unmarshaller = new ListUnmarshaller<JobEventDetails, JobEventDetailsUnmarshaller>(JobEventDetailsUnmarshaller.Instance); response.Events = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("failureReason", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.FailureReason = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("hyperParameters", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller<string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance); response.HyperParameters = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("inputDataConfig", targetDepth)) { var unmarshaller = new ListUnmarshaller<InputFileConfig, InputFileConfigUnmarshaller>(InputFileConfigUnmarshaller.Instance); response.InputDataConfig = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("instanceConfig", targetDepth)) { var unmarshaller = InstanceConfigUnmarshaller.Instance; response.InstanceConfig = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("jobArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.JobArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("jobName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.JobName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("outputDataConfig", targetDepth)) { var unmarshaller = JobOutputDataConfigUnmarshaller.Instance; response.OutputDataConfig = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("roleArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.RoleArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("startedAt", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; response.StartedAt = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("status", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Status = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("stoppingCondition", targetDepth)) { var unmarshaller = JobStoppingConditionUnmarshaller.Instance; response.StoppingCondition = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("tags", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller<string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance); response.Tags = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("AccessDeniedException")) { return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServiceException")) { return InternalServiceExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) { return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException")) { return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) { return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonBraketException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static GetJobResponseUnmarshaller _instance = new GetJobResponseUnmarshaller(); internal static GetJobResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static GetJobResponseUnmarshaller Instance { get { return _instance; } } } }
234
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.Braket.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Braket.Model.Internal.MarshallTransformations { /// <summary> /// GetQuantumTask Request Marshaller /// </summary> public class GetQuantumTaskRequestMarshaller : IMarshaller<IRequest, GetQuantumTaskRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((GetQuantumTaskRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(GetQuantumTaskRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.Braket"); request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2019-09-01"; request.HttpMethod = "GET"; if (!publicRequest.IsSetQuantumTaskArn()) throw new AmazonBraketException("Request object does not have required field QuantumTaskArn set"); request.AddPathResource("{quantumTaskArn}", StringUtils.FromString(publicRequest.QuantumTaskArn)); request.ResourcePath = "/quantum-task/{quantumTaskArn}"; return request; } private static GetQuantumTaskRequestMarshaller _instance = new GetQuantumTaskRequestMarshaller(); internal static GetQuantumTaskRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static GetQuantumTaskRequestMarshaller Instance { get { return _instance; } } } }
87
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.Braket.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Braket.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for GetQuantumTask operation /// </summary> public class GetQuantumTaskResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { GetQuantumTaskResponse response = new GetQuantumTaskResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("createdAt", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; response.CreatedAt = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("deviceArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.DeviceArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("deviceParameters", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.DeviceParameters = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("endedAt", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; response.EndedAt = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("failureReason", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.FailureReason = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("jobArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.JobArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("outputS3Bucket", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.OutputS3Bucket = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("outputS3Directory", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.OutputS3Directory = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("quantumTaskArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.QuantumTaskArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("shots", targetDepth)) { var unmarshaller = LongUnmarshaller.Instance; response.Shots = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("status", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Status = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("tags", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller<string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance); response.Tags = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("AccessDeniedException")) { return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServiceException")) { return InternalServiceExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) { return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException")) { return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) { return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonBraketException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static GetQuantumTaskResponseUnmarshaller _instance = new GetQuantumTaskResponseUnmarshaller(); internal static GetQuantumTaskResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static GetQuantumTaskResponseUnmarshaller Instance { get { return _instance; } } } }
192
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.Braket.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Braket.Model.Internal.MarshallTransformations { /// <summary> /// InputFileConfig Marshaller /// </summary> public class InputFileConfigMarshaller : IRequestMarshaller<InputFileConfig, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(InputFileConfig requestObject, JsonMarshallerContext context) { if(requestObject.IsSetChannelName()) { context.Writer.WritePropertyName("channelName"); context.Writer.Write(requestObject.ChannelName); } if(requestObject.IsSetContentType()) { context.Writer.WritePropertyName("contentType"); context.Writer.Write(requestObject.ContentType); } if(requestObject.IsSetDataSource()) { context.Writer.WritePropertyName("dataSource"); context.Writer.WriteObjectStart(); var marshaller = DataSourceMarshaller.Instance; marshaller.Marshall(requestObject.DataSource, context); context.Writer.WriteObjectEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static InputFileConfigMarshaller Instance = new InputFileConfigMarshaller(); } }
79
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.Braket.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Braket.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for InputFileConfig Object /// </summary> public class InputFileConfigUnmarshaller : IUnmarshaller<InputFileConfig, XmlUnmarshallerContext>, IUnmarshaller<InputFileConfig, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> InputFileConfig IUnmarshaller<InputFileConfig, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public InputFileConfig Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; InputFileConfig unmarshalledObject = new InputFileConfig(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("channelName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ChannelName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("contentType", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ContentType = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("dataSource", targetDepth)) { var unmarshaller = DataSourceUnmarshaller.Instance; unmarshalledObject.DataSource = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static InputFileConfigUnmarshaller _instance = new InputFileConfigUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static InputFileConfigUnmarshaller Instance { get { return _instance; } } } }
104