/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See 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.Runtime.ExceptionServices;
using System.Threading;
using System.Threading.Tasks;
using System.Collections.Generic;
using System.Net;
using Amazon.Braket.Model;
using Amazon.Braket.Model.Internal.MarshallTransformations;
using Amazon.Braket.Internal;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Auth;
using Amazon.Runtime.Internal.Transform;
namespace Amazon.Braket
{
///
/// Implementation for accessing Braket
///
/// The Amazon Braket API Reference provides information about the operations and structures
/// supported in Amazon Braket.
///
///
///
/// Additional Resources:
///
///
///
public partial class AmazonBraketClient : AmazonServiceClient, IAmazonBraket
{
private static IServiceMetadata serviceMetadata = new AmazonBraketMetadata();
private IBraketPaginatorFactory _paginators;
///
/// Paginators for the service
///
public IBraketPaginatorFactory Paginators
{
get
{
if (this._paginators == null)
{
this._paginators = new BraketPaginatorFactory(this);
}
return this._paginators;
}
}
#region Constructors
///
/// Constructs AmazonBraketClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
///
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
///
///
///
public AmazonBraketClient()
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonBraketConfig()) { }
///
/// Constructs AmazonBraketClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
///
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
///
///
///
/// The region to connect.
public AmazonBraketClient(RegionEndpoint region)
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonBraketConfig{RegionEndpoint = region}) { }
///
/// Constructs AmazonBraketClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
///
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
///
///
///
/// The AmazonBraketClient Configuration Object
public AmazonBraketClient(AmazonBraketConfig config)
: base(FallbackCredentialsFactory.GetCredentials(config), config){}
///
/// Constructs AmazonBraketClient with AWS Credentials
///
/// AWS Credentials
public AmazonBraketClient(AWSCredentials credentials)
: this(credentials, new AmazonBraketConfig())
{
}
///
/// Constructs AmazonBraketClient with AWS Credentials
///
/// AWS Credentials
/// The region to connect.
public AmazonBraketClient(AWSCredentials credentials, RegionEndpoint region)
: this(credentials, new AmazonBraketConfig{RegionEndpoint = region})
{
}
///
/// Constructs AmazonBraketClient with AWS Credentials and an
/// AmazonBraketClient Configuration object.
///
/// AWS Credentials
/// The AmazonBraketClient Configuration Object
public AmazonBraketClient(AWSCredentials credentials, AmazonBraketConfig clientConfig)
: base(credentials, clientConfig)
{
}
///
/// Constructs AmazonBraketClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
public AmazonBraketClient(string awsAccessKeyId, string awsSecretAccessKey)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonBraketConfig())
{
}
///
/// Constructs AmazonBraketClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// The region to connect.
public AmazonBraketClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonBraketConfig() {RegionEndpoint=region})
{
}
///
/// Constructs AmazonBraketClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonBraketClient Configuration object.
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// The AmazonBraketClient Configuration Object
public AmazonBraketClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonBraketConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, clientConfig)
{
}
///
/// Constructs AmazonBraketClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// AWS Session Token
public AmazonBraketClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonBraketConfig())
{
}
///
/// Constructs AmazonBraketClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// AWS Session Token
/// The region to connect.
public AmazonBraketClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonBraketConfig{RegionEndpoint = region})
{
}
///
/// Constructs AmazonBraketClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonBraketClient Configuration object.
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// AWS Session Token
/// The AmazonBraketClient Configuration Object
public AmazonBraketClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonBraketConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig)
{
}
#endregion
#region Overrides
///
/// Creates the signer for the service.
///
protected override AbstractAWSSigner CreateSigner()
{
return new AWS4Signer();
}
///
/// Customize the pipeline
///
///
protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline)
{
pipeline.RemoveHandler();
pipeline.AddHandlerAfter(new AmazonBraketEndpointResolver());
}
///
/// Capture metadata for the service.
///
protected override IServiceMetadata ServiceMetadata
{
get
{
return serviceMetadata;
}
}
#endregion
#region Dispose
///
/// Disposes the service client.
///
protected override void Dispose(bool disposing)
{
base.Dispose(disposing);
}
#endregion
#region CancelJob
///
/// Cancels an Amazon Braket job.
///
/// Container for the necessary parameters to execute the CancelJob service method.
///
/// The response from the CancelJob service method, as returned by Braket.
///
/// You do not have sufficient access to perform this action.
///
///
/// An error occurred due to a conflict.
///
///
/// The request processing has failed because of an unknown error, exception, or failure.
///
///
/// The specified resource was not found.
///
///
/// The throttling rate limit is met.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for CancelJob Operation
public virtual CancelJobResponse CancelJob(CancelJobRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CancelJobRequestMarshaller.Instance;
options.ResponseUnmarshaller = CancelJobResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Cancels an Amazon Braket job.
///
/// Container for the necessary parameters to execute the CancelJob service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CancelJob service method, as returned by Braket.
///
/// You do not have sufficient access to perform this action.
///
///
/// An error occurred due to a conflict.
///
///
/// The request processing has failed because of an unknown error, exception, or failure.
///
///
/// The specified resource was not found.
///
///
/// The throttling rate limit is met.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for CancelJob Operation
public virtual Task CancelJobAsync(CancelJobRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CancelJobRequestMarshaller.Instance;
options.ResponseUnmarshaller = CancelJobResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region CancelQuantumTask
///
/// Cancels the specified task.
///
/// Container for the necessary parameters to execute the CancelQuantumTask service method.
///
/// The response from the CancelQuantumTask service method, as returned by Braket.
///
/// You do not have sufficient access to perform this action.
///
///
/// An error occurred due to a conflict.
///
///
/// The request processing has failed because of an unknown error, exception, or failure.
///
///
/// The specified resource was not found.
///
///
/// The throttling rate limit is met.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for CancelQuantumTask Operation
public virtual CancelQuantumTaskResponse CancelQuantumTask(CancelQuantumTaskRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CancelQuantumTaskRequestMarshaller.Instance;
options.ResponseUnmarshaller = CancelQuantumTaskResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Cancels the specified task.
///
/// Container for the necessary parameters to execute the CancelQuantumTask service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CancelQuantumTask service method, as returned by Braket.
///
/// You do not have sufficient access to perform this action.
///
///
/// An error occurred due to a conflict.
///
///
/// The request processing has failed because of an unknown error, exception, or failure.
///
///
/// The specified resource was not found.
///
///
/// The throttling rate limit is met.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for CancelQuantumTask Operation
public virtual Task CancelQuantumTaskAsync(CancelQuantumTaskRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CancelQuantumTaskRequestMarshaller.Instance;
options.ResponseUnmarshaller = CancelQuantumTaskResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region CreateJob
///
/// Creates an Amazon Braket job.
///
/// Container for the necessary parameters to execute the CreateJob service method.
///
/// The response from the CreateJob service method, as returned by Braket.
///
/// You do not have sufficient access to perform this action.
///
///
/// An error occurred due to a conflict.
///
///
/// The specified device has been retired.
///
///
/// The request processing has failed because of an unknown error, exception, or failure.
///
///
/// The request failed because a service quota is exceeded.
///
///
/// The throttling rate limit is met.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for CreateJob Operation
public virtual CreateJobResponse CreateJob(CreateJobRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateJobRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateJobResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Creates an Amazon Braket job.
///
/// Container for the necessary parameters to execute the CreateJob service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CreateJob service method, as returned by Braket.
///
/// You do not have sufficient access to perform this action.
///
///
/// An error occurred due to a conflict.
///
///
/// The specified device has been retired.
///
///
/// The request processing has failed because of an unknown error, exception, or failure.
///
///
/// The request failed because a service quota is exceeded.
///
///
/// The throttling rate limit is met.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for CreateJob Operation
public virtual Task CreateJobAsync(CreateJobRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateJobRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateJobResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region CreateQuantumTask
///
/// Creates a quantum task.
///
/// Container for the necessary parameters to execute the CreateQuantumTask service method.
///
/// The response from the CreateQuantumTask service method, as returned by Braket.
///
/// You do not have sufficient access to perform this action.
///
///
/// The specified device is currently offline.
///
///
/// The specified device has been retired.
///
///
/// The request processing has failed because of an unknown error, exception, or failure.
///
///
/// The request failed because a service quota is exceeded.
///
///
/// The throttling rate limit is met.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for CreateQuantumTask Operation
public virtual CreateQuantumTaskResponse CreateQuantumTask(CreateQuantumTaskRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateQuantumTaskRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateQuantumTaskResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Creates a quantum task.
///
/// Container for the necessary parameters to execute the CreateQuantumTask service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CreateQuantumTask service method, as returned by Braket.
///
/// You do not have sufficient access to perform this action.
///
///
/// The specified device is currently offline.
///
///
/// The specified device has been retired.
///
///
/// The request processing has failed because of an unknown error, exception, or failure.
///
///
/// The request failed because a service quota is exceeded.
///
///
/// The throttling rate limit is met.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for CreateQuantumTask Operation
public virtual Task CreateQuantumTaskAsync(CreateQuantumTaskRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateQuantumTaskRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateQuantumTaskResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region GetDevice
///
/// Retrieves the devices available in Amazon Braket.
///
///
///
/// 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.
///
///
///
/// Container for the necessary parameters to execute the GetDevice service method.
///
/// The response from the GetDevice service method, as returned by Braket.
///
/// You do not have sufficient access to perform this action.
///
///
/// The request processing has failed because of an unknown error, exception, or failure.
///
///
/// The specified resource was not found.
///
///
/// The throttling rate limit is met.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for GetDevice Operation
public virtual GetDeviceResponse GetDevice(GetDeviceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetDeviceRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetDeviceResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Retrieves the devices available in Amazon Braket.
///
///
///
/// 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.
///
///
///
/// Container for the necessary parameters to execute the GetDevice service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetDevice service method, as returned by Braket.
///
/// You do not have sufficient access to perform this action.
///
///
/// The request processing has failed because of an unknown error, exception, or failure.
///
///
/// The specified resource was not found.
///
///
/// The throttling rate limit is met.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for GetDevice Operation
public virtual Task GetDeviceAsync(GetDeviceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetDeviceRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetDeviceResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region GetJob
///
/// Retrieves the specified Amazon Braket job.
///
/// Container for the necessary parameters to execute the GetJob service method.
///
/// The response from the GetJob service method, as returned by Braket.
///
/// You do not have sufficient access to perform this action.
///
///
/// The request processing has failed because of an unknown error, exception, or failure.
///
///
/// The specified resource was not found.
///
///
/// The throttling rate limit is met.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for GetJob Operation
public virtual GetJobResponse GetJob(GetJobRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetJobRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetJobResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Retrieves the specified Amazon Braket job.
///
/// Container for the necessary parameters to execute the GetJob service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetJob service method, as returned by Braket.
///
/// You do not have sufficient access to perform this action.
///
///
/// The request processing has failed because of an unknown error, exception, or failure.
///
///
/// The specified resource was not found.
///
///
/// The throttling rate limit is met.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for GetJob Operation
public virtual Task GetJobAsync(GetJobRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetJobRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetJobResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region GetQuantumTask
///
/// Retrieves the specified quantum task.
///
/// Container for the necessary parameters to execute the GetQuantumTask service method.
///
/// The response from the GetQuantumTask service method, as returned by Braket.
///
/// You do not have sufficient access to perform this action.
///
///
/// The request processing has failed because of an unknown error, exception, or failure.
///
///
/// The specified resource was not found.
///
///
/// The throttling rate limit is met.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for GetQuantumTask Operation
public virtual GetQuantumTaskResponse GetQuantumTask(GetQuantumTaskRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetQuantumTaskRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetQuantumTaskResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Retrieves the specified quantum task.
///
/// Container for the necessary parameters to execute the GetQuantumTask service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetQuantumTask service method, as returned by Braket.
///
/// You do not have sufficient access to perform this action.
///
///
/// The request processing has failed because of an unknown error, exception, or failure.
///
///
/// The specified resource was not found.
///
///
/// The throttling rate limit is met.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for GetQuantumTask Operation
public virtual Task GetQuantumTaskAsync(GetQuantumTaskRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetQuantumTaskRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetQuantumTaskResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListTagsForResource
///
/// Shows the tags associated with this resource.
///
/// Container for the necessary parameters to execute the ListTagsForResource service method.
///
/// The response from the ListTagsForResource service method, as returned by Braket.
///
/// The request processing has failed because of an unknown error, exception, or failure.
///
///
/// The specified resource was not found.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for ListTagsForResource Operation
public virtual ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Shows the tags associated with this resource.
///
/// Container for the necessary parameters to execute the ListTagsForResource service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListTagsForResource service method, as returned by Braket.
///
/// The request processing has failed because of an unknown error, exception, or failure.
///
///
/// The specified resource was not found.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for ListTagsForResource Operation
public virtual Task ListTagsForResourceAsync(ListTagsForResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region SearchDevices
///
/// Searches for devices using the specified filters.
///
/// Container for the necessary parameters to execute the SearchDevices service method.
///
/// The response from the SearchDevices service method, as returned by Braket.
///
/// You do not have sufficient access to perform this action.
///
///
/// The request processing has failed because of an unknown error, exception, or failure.
///
///
/// The throttling rate limit is met.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for SearchDevices Operation
public virtual SearchDevicesResponse SearchDevices(SearchDevicesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = SearchDevicesRequestMarshaller.Instance;
options.ResponseUnmarshaller = SearchDevicesResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Searches for devices using the specified filters.
///
/// Container for the necessary parameters to execute the SearchDevices service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the SearchDevices service method, as returned by Braket.
///
/// You do not have sufficient access to perform this action.
///
///
/// The request processing has failed because of an unknown error, exception, or failure.
///
///
/// The throttling rate limit is met.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for SearchDevices Operation
public virtual Task SearchDevicesAsync(SearchDevicesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = SearchDevicesRequestMarshaller.Instance;
options.ResponseUnmarshaller = SearchDevicesResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region SearchJobs
///
/// Searches for Amazon Braket jobs that match the specified filter values.
///
/// Container for the necessary parameters to execute the SearchJobs service method.
///
/// The response from the SearchJobs service method, as returned by Braket.
///
/// You do not have sufficient access to perform this action.
///
///
/// The request processing has failed because of an unknown error, exception, or failure.
///
///
/// The throttling rate limit is met.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for SearchJobs Operation
public virtual SearchJobsResponse SearchJobs(SearchJobsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = SearchJobsRequestMarshaller.Instance;
options.ResponseUnmarshaller = SearchJobsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Searches for Amazon Braket jobs that match the specified filter values.
///
/// Container for the necessary parameters to execute the SearchJobs service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the SearchJobs service method, as returned by Braket.
///
/// You do not have sufficient access to perform this action.
///
///
/// The request processing has failed because of an unknown error, exception, or failure.
///
///
/// The throttling rate limit is met.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for SearchJobs Operation
public virtual Task SearchJobsAsync(SearchJobsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = SearchJobsRequestMarshaller.Instance;
options.ResponseUnmarshaller = SearchJobsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region SearchQuantumTasks
///
/// Searches for tasks that match the specified filter values.
///
/// Container for the necessary parameters to execute the SearchQuantumTasks service method.
///
/// The response from the SearchQuantumTasks service method, as returned by Braket.
///
/// You do not have sufficient access to perform this action.
///
///
/// The request processing has failed because of an unknown error, exception, or failure.
///
///
/// The throttling rate limit is met.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for SearchQuantumTasks Operation
public virtual SearchQuantumTasksResponse SearchQuantumTasks(SearchQuantumTasksRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = SearchQuantumTasksRequestMarshaller.Instance;
options.ResponseUnmarshaller = SearchQuantumTasksResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Searches for tasks that match the specified filter values.
///
/// Container for the necessary parameters to execute the SearchQuantumTasks service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the SearchQuantumTasks service method, as returned by Braket.
///
/// You do not have sufficient access to perform this action.
///
///
/// The request processing has failed because of an unknown error, exception, or failure.
///
///
/// The throttling rate limit is met.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for SearchQuantumTasks Operation
public virtual Task SearchQuantumTasksAsync(SearchQuantumTasksRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = SearchQuantumTasksRequestMarshaller.Instance;
options.ResponseUnmarshaller = SearchQuantumTasksResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region TagResource
///
/// Add a tag to the specified resource.
///
/// Container for the necessary parameters to execute the TagResource service method.
///
/// The response from the TagResource service method, as returned by Braket.
///
/// The request processing has failed because of an unknown error, exception, or failure.
///
///
/// The specified resource was not found.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for TagResource Operation
public virtual TagResourceResponse TagResource(TagResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = TagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Add a tag to the specified resource.
///
/// Container for the necessary parameters to execute the TagResource service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the TagResource service method, as returned by Braket.
///
/// The request processing has failed because of an unknown error, exception, or failure.
///
///
/// The specified resource was not found.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for TagResource Operation
public virtual Task TagResourceAsync(TagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = TagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region UntagResource
///
/// Remove tags from a resource.
///
/// Container for the necessary parameters to execute the UntagResource service method.
///
/// The response from the UntagResource service method, as returned by Braket.
///
/// The request processing has failed because of an unknown error, exception, or failure.
///
///
/// The specified resource was not found.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for UntagResource Operation
public virtual UntagResourceResponse UntagResource(UntagResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UntagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Remove tags from a resource.
///
/// Container for the necessary parameters to execute the UntagResource service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the UntagResource service method, as returned by Braket.
///
/// The request processing has failed because of an unknown error, exception, or failure.
///
///
/// The specified resource was not found.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for UntagResource Operation
public virtual Task UntagResourceAsync(UntagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UntagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
}
}