/* * 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 iotdeviceadvisor-2020-09-18.normal.json service model. */ using System; using System.Collections.Generic; using System.Net; using Amazon.IoTDeviceAdvisor.Model; using Amazon.IoTDeviceAdvisor.Model.Internal.MarshallTransformations; using Amazon.IoTDeviceAdvisor.Internal; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Auth; using Amazon.Runtime.Internal.Transform; namespace Amazon.IoTDeviceAdvisor { /// /// Implementation for accessing IoTDeviceAdvisor /// /// Amazon Web Services IoT Core Device Advisor is a cloud-based, fully managed test capability /// for validating IoT devices during device software development. Device Advisor provides /// pre-built tests that you can use to validate IoT devices for reliable and secure connectivity /// with Amazon Web Services IoT Core before deploying devices to production. By using /// Device Advisor, you can confirm that your devices can connect to Amazon Web Services /// IoT Core, follow security best practices and, if applicable, receive software updates /// from IoT Device Management. You can also download signed qualification reports to /// submit to the Amazon Web Services Partner Network to get your device qualified for /// the Amazon Web Services Partner Device Catalog without the need to send your device /// in and wait for it to be tested. /// public partial class AmazonIoTDeviceAdvisorClient : AmazonServiceClient, IAmazonIoTDeviceAdvisor { private static IServiceMetadata serviceMetadata = new AmazonIoTDeviceAdvisorMetadata(); #if BCL45 || AWS_ASYNC_ENUMERABLES_API private IIoTDeviceAdvisorPaginatorFactory _paginators; /// /// Paginators for the service /// public IIoTDeviceAdvisorPaginatorFactory Paginators { get { if (this._paginators == null) { this._paginators = new IoTDeviceAdvisorPaginatorFactory(this); } return this._paginators; } } #endif #region Constructors /// /// Constructs AmazonIoTDeviceAdvisorClient 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 AmazonIoTDeviceAdvisorClient() : base(FallbackCredentialsFactory.GetCredentials(), new AmazonIoTDeviceAdvisorConfig()) { } /// /// Constructs AmazonIoTDeviceAdvisorClient 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 AmazonIoTDeviceAdvisorClient(RegionEndpoint region) : base(FallbackCredentialsFactory.GetCredentials(), new AmazonIoTDeviceAdvisorConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonIoTDeviceAdvisorClient 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 AmazonIoTDeviceAdvisorClient Configuration Object public AmazonIoTDeviceAdvisorClient(AmazonIoTDeviceAdvisorConfig config) : base(FallbackCredentialsFactory.GetCredentials(config), config){} /// /// Constructs AmazonIoTDeviceAdvisorClient with AWS Credentials /// /// AWS Credentials public AmazonIoTDeviceAdvisorClient(AWSCredentials credentials) : this(credentials, new AmazonIoTDeviceAdvisorConfig()) { } /// /// Constructs AmazonIoTDeviceAdvisorClient with AWS Credentials /// /// AWS Credentials /// The region to connect. public AmazonIoTDeviceAdvisorClient(AWSCredentials credentials, RegionEndpoint region) : this(credentials, new AmazonIoTDeviceAdvisorConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonIoTDeviceAdvisorClient with AWS Credentials and an /// AmazonIoTDeviceAdvisorClient Configuration object. /// /// AWS Credentials /// The AmazonIoTDeviceAdvisorClient Configuration Object public AmazonIoTDeviceAdvisorClient(AWSCredentials credentials, AmazonIoTDeviceAdvisorConfig clientConfig) : base(credentials, clientConfig) { } /// /// Constructs AmazonIoTDeviceAdvisorClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key public AmazonIoTDeviceAdvisorClient(string awsAccessKeyId, string awsSecretAccessKey) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonIoTDeviceAdvisorConfig()) { } /// /// Constructs AmazonIoTDeviceAdvisorClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// The region to connect. public AmazonIoTDeviceAdvisorClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonIoTDeviceAdvisorConfig() {RegionEndpoint=region}) { } /// /// Constructs AmazonIoTDeviceAdvisorClient with AWS Access Key ID, AWS Secret Key and an /// AmazonIoTDeviceAdvisorClient Configuration object. /// /// AWS Access Key ID /// AWS Secret Access Key /// The AmazonIoTDeviceAdvisorClient Configuration Object public AmazonIoTDeviceAdvisorClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonIoTDeviceAdvisorConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) { } /// /// Constructs AmazonIoTDeviceAdvisorClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token public AmazonIoTDeviceAdvisorClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonIoTDeviceAdvisorConfig()) { } /// /// Constructs AmazonIoTDeviceAdvisorClient 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 AmazonIoTDeviceAdvisorClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonIoTDeviceAdvisorConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonIoTDeviceAdvisorClient with AWS Access Key ID, AWS Secret Key and an /// AmazonIoTDeviceAdvisorClient Configuration object. /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token /// The AmazonIoTDeviceAdvisorClient Configuration Object public AmazonIoTDeviceAdvisorClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonIoTDeviceAdvisorConfig 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 AmazonIoTDeviceAdvisorEndpointResolver()); } /// /// 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 CreateSuiteDefinition /// /// Creates a Device Advisor test suite. /// /// /// /// Requires permission to access the CreateSuiteDefinition /// action. /// /// /// Container for the necessary parameters to execute the CreateSuiteDefinition service method. /// /// The response from the CreateSuiteDefinition service method, as returned by IoTDeviceAdvisor. /// /// Sends an Internal Failure exception. /// /// /// Sends a validation exception. /// /// REST API Reference for CreateSuiteDefinition Operation public virtual CreateSuiteDefinitionResponse CreateSuiteDefinition(CreateSuiteDefinitionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateSuiteDefinitionRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateSuiteDefinitionResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the CreateSuiteDefinition operation. /// /// /// Container for the necessary parameters to execute the CreateSuiteDefinition operation on AmazonIoTDeviceAdvisorClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateSuiteDefinition /// operation. /// REST API Reference for CreateSuiteDefinition Operation public virtual IAsyncResult BeginCreateSuiteDefinition(CreateSuiteDefinitionRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CreateSuiteDefinitionRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateSuiteDefinitionResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the CreateSuiteDefinition operation. /// /// /// The IAsyncResult returned by the call to BeginCreateSuiteDefinition. /// /// Returns a CreateSuiteDefinitionResult from IoTDeviceAdvisor. /// REST API Reference for CreateSuiteDefinition Operation public virtual CreateSuiteDefinitionResponse EndCreateSuiteDefinition(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DeleteSuiteDefinition /// /// Deletes a Device Advisor test suite. /// /// /// /// Requires permission to access the DeleteSuiteDefinition /// action. /// /// /// Container for the necessary parameters to execute the DeleteSuiteDefinition service method. /// /// The response from the DeleteSuiteDefinition service method, as returned by IoTDeviceAdvisor. /// /// Sends an Internal Failure exception. /// /// /// Sends a validation exception. /// /// REST API Reference for DeleteSuiteDefinition Operation public virtual DeleteSuiteDefinitionResponse DeleteSuiteDefinition(DeleteSuiteDefinitionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteSuiteDefinitionRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteSuiteDefinitionResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DeleteSuiteDefinition operation. /// /// /// Container for the necessary parameters to execute the DeleteSuiteDefinition operation on AmazonIoTDeviceAdvisorClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteSuiteDefinition /// operation. /// REST API Reference for DeleteSuiteDefinition Operation public virtual IAsyncResult BeginDeleteSuiteDefinition(DeleteSuiteDefinitionRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteSuiteDefinitionRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteSuiteDefinitionResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DeleteSuiteDefinition operation. /// /// /// The IAsyncResult returned by the call to BeginDeleteSuiteDefinition. /// /// Returns a DeleteSuiteDefinitionResult from IoTDeviceAdvisor. /// REST API Reference for DeleteSuiteDefinition Operation public virtual DeleteSuiteDefinitionResponse EndDeleteSuiteDefinition(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region GetEndpoint /// /// Gets information about an Device Advisor endpoint. /// /// Container for the necessary parameters to execute the GetEndpoint service method. /// /// The response from the GetEndpoint service method, as returned by IoTDeviceAdvisor. /// /// Sends an Internal Failure exception. /// /// /// Sends a Resource Not Found exception. /// /// /// Sends a validation exception. /// /// REST API Reference for GetEndpoint Operation public virtual GetEndpointResponse GetEndpoint(GetEndpointRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetEndpointRequestMarshaller.Instance; options.ResponseUnmarshaller = GetEndpointResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the GetEndpoint operation. /// /// /// Container for the necessary parameters to execute the GetEndpoint operation on AmazonIoTDeviceAdvisorClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetEndpoint /// operation. /// REST API Reference for GetEndpoint Operation public virtual IAsyncResult BeginGetEndpoint(GetEndpointRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetEndpointRequestMarshaller.Instance; options.ResponseUnmarshaller = GetEndpointResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the GetEndpoint operation. /// /// /// The IAsyncResult returned by the call to BeginGetEndpoint. /// /// Returns a GetEndpointResult from IoTDeviceAdvisor. /// REST API Reference for GetEndpoint Operation public virtual GetEndpointResponse EndGetEndpoint(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region GetSuiteDefinition /// /// Gets information about a Device Advisor test suite. /// /// /// /// Requires permission to access the GetSuiteDefinition /// action. /// /// /// Container for the necessary parameters to execute the GetSuiteDefinition service method. /// /// The response from the GetSuiteDefinition service method, as returned by IoTDeviceAdvisor. /// /// Sends an Internal Failure exception. /// /// /// Sends a Resource Not Found exception. /// /// /// Sends a validation exception. /// /// REST API Reference for GetSuiteDefinition Operation public virtual GetSuiteDefinitionResponse GetSuiteDefinition(GetSuiteDefinitionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetSuiteDefinitionRequestMarshaller.Instance; options.ResponseUnmarshaller = GetSuiteDefinitionResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the GetSuiteDefinition operation. /// /// /// Container for the necessary parameters to execute the GetSuiteDefinition operation on AmazonIoTDeviceAdvisorClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetSuiteDefinition /// operation. /// REST API Reference for GetSuiteDefinition Operation public virtual IAsyncResult BeginGetSuiteDefinition(GetSuiteDefinitionRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetSuiteDefinitionRequestMarshaller.Instance; options.ResponseUnmarshaller = GetSuiteDefinitionResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the GetSuiteDefinition operation. /// /// /// The IAsyncResult returned by the call to BeginGetSuiteDefinition. /// /// Returns a GetSuiteDefinitionResult from IoTDeviceAdvisor. /// REST API Reference for GetSuiteDefinition Operation public virtual GetSuiteDefinitionResponse EndGetSuiteDefinition(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region GetSuiteRun /// /// Gets information about a Device Advisor test suite run. /// /// /// /// Requires permission to access the GetSuiteRun /// action. /// /// /// Container for the necessary parameters to execute the GetSuiteRun service method. /// /// The response from the GetSuiteRun service method, as returned by IoTDeviceAdvisor. /// /// Sends an Internal Failure exception. /// /// /// Sends a Resource Not Found exception. /// /// /// Sends a validation exception. /// /// REST API Reference for GetSuiteRun Operation public virtual GetSuiteRunResponse GetSuiteRun(GetSuiteRunRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetSuiteRunRequestMarshaller.Instance; options.ResponseUnmarshaller = GetSuiteRunResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the GetSuiteRun operation. /// /// /// Container for the necessary parameters to execute the GetSuiteRun operation on AmazonIoTDeviceAdvisorClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetSuiteRun /// operation. /// REST API Reference for GetSuiteRun Operation public virtual IAsyncResult BeginGetSuiteRun(GetSuiteRunRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetSuiteRunRequestMarshaller.Instance; options.ResponseUnmarshaller = GetSuiteRunResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the GetSuiteRun operation. /// /// /// The IAsyncResult returned by the call to BeginGetSuiteRun. /// /// Returns a GetSuiteRunResult from IoTDeviceAdvisor. /// REST API Reference for GetSuiteRun Operation public virtual GetSuiteRunResponse EndGetSuiteRun(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region GetSuiteRunReport /// /// Gets a report download link for a successful Device Advisor qualifying test suite /// run. /// /// /// /// Requires permission to access the GetSuiteRunReport /// action. /// /// /// Container for the necessary parameters to execute the GetSuiteRunReport service method. /// /// The response from the GetSuiteRunReport service method, as returned by IoTDeviceAdvisor. /// /// Sends an Internal Failure exception. /// /// /// Sends a Resource Not Found exception. /// /// /// Sends a validation exception. /// /// REST API Reference for GetSuiteRunReport Operation public virtual GetSuiteRunReportResponse GetSuiteRunReport(GetSuiteRunReportRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetSuiteRunReportRequestMarshaller.Instance; options.ResponseUnmarshaller = GetSuiteRunReportResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the GetSuiteRunReport operation. /// /// /// Container for the necessary parameters to execute the GetSuiteRunReport operation on AmazonIoTDeviceAdvisorClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetSuiteRunReport /// operation. /// REST API Reference for GetSuiteRunReport Operation public virtual IAsyncResult BeginGetSuiteRunReport(GetSuiteRunReportRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetSuiteRunReportRequestMarshaller.Instance; options.ResponseUnmarshaller = GetSuiteRunReportResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the GetSuiteRunReport operation. /// /// /// The IAsyncResult returned by the call to BeginGetSuiteRunReport. /// /// Returns a GetSuiteRunReportResult from IoTDeviceAdvisor. /// REST API Reference for GetSuiteRunReport Operation public virtual GetSuiteRunReportResponse EndGetSuiteRunReport(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region ListSuiteDefinitions /// /// Lists the Device Advisor test suites you have created. /// /// /// /// Requires permission to access the ListSuiteDefinitions /// action. /// /// /// Container for the necessary parameters to execute the ListSuiteDefinitions service method. /// /// The response from the ListSuiteDefinitions service method, as returned by IoTDeviceAdvisor. /// /// Sends an Internal Failure exception. /// /// /// Sends a validation exception. /// /// REST API Reference for ListSuiteDefinitions Operation public virtual ListSuiteDefinitionsResponse ListSuiteDefinitions(ListSuiteDefinitionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListSuiteDefinitionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListSuiteDefinitionsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the ListSuiteDefinitions operation. /// /// /// Container for the necessary parameters to execute the ListSuiteDefinitions operation on AmazonIoTDeviceAdvisorClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListSuiteDefinitions /// operation. /// REST API Reference for ListSuiteDefinitions Operation public virtual IAsyncResult BeginListSuiteDefinitions(ListSuiteDefinitionsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListSuiteDefinitionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListSuiteDefinitionsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the ListSuiteDefinitions operation. /// /// /// The IAsyncResult returned by the call to BeginListSuiteDefinitions. /// /// Returns a ListSuiteDefinitionsResult from IoTDeviceAdvisor. /// REST API Reference for ListSuiteDefinitions Operation public virtual ListSuiteDefinitionsResponse EndListSuiteDefinitions(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region ListSuiteRuns /// /// Lists runs of the specified Device Advisor test suite. You can list all runs of the /// test suite, or the runs of a specific version of the test suite. /// /// /// /// Requires permission to access the ListSuiteRuns /// action. /// /// /// Container for the necessary parameters to execute the ListSuiteRuns service method. /// /// The response from the ListSuiteRuns service method, as returned by IoTDeviceAdvisor. /// /// Sends an Internal Failure exception. /// /// /// Sends a validation exception. /// /// REST API Reference for ListSuiteRuns Operation public virtual ListSuiteRunsResponse ListSuiteRuns(ListSuiteRunsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListSuiteRunsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListSuiteRunsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the ListSuiteRuns operation. /// /// /// Container for the necessary parameters to execute the ListSuiteRuns operation on AmazonIoTDeviceAdvisorClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListSuiteRuns /// operation. /// REST API Reference for ListSuiteRuns Operation public virtual IAsyncResult BeginListSuiteRuns(ListSuiteRunsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListSuiteRunsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListSuiteRunsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the ListSuiteRuns operation. /// /// /// The IAsyncResult returned by the call to BeginListSuiteRuns. /// /// Returns a ListSuiteRunsResult from IoTDeviceAdvisor. /// REST API Reference for ListSuiteRuns Operation public virtual ListSuiteRunsResponse EndListSuiteRuns(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region ListTagsForResource /// /// Lists the tags attached to an IoT Device Advisor resource. /// /// /// /// Requires permission to access the ListTagsForResource /// action. /// /// /// Container for the necessary parameters to execute the ListTagsForResource service method. /// /// The response from the ListTagsForResource service method, as returned by IoTDeviceAdvisor. /// /// Sends an Internal Failure exception. /// /// /// Sends a Resource Not Found exception. /// /// /// Sends a validation exception. /// /// 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); } /// /// Initiates the asynchronous execution of the ListTagsForResource operation. /// /// /// Container for the necessary parameters to execute the ListTagsForResource operation on AmazonIoTDeviceAdvisorClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListTagsForResource /// operation. /// REST API Reference for ListTagsForResource Operation 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); } /// /// Finishes the asynchronous execution of the ListTagsForResource operation. /// /// /// The IAsyncResult returned by the call to BeginListTagsForResource. /// /// Returns a ListTagsForResourceResult from IoTDeviceAdvisor. /// REST API Reference for ListTagsForResource Operation public virtual ListTagsForResourceResponse EndListTagsForResource(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region StartSuiteRun /// /// Starts a Device Advisor test suite run. /// /// /// /// Requires permission to access the StartSuiteRun /// action. /// /// /// Container for the necessary parameters to execute the StartSuiteRun service method. /// /// The response from the StartSuiteRun service method, as returned by IoTDeviceAdvisor. /// /// Sends a Conflict Exception. /// /// /// Sends an Internal Failure exception. /// /// /// Sends a validation exception. /// /// REST API Reference for StartSuiteRun Operation public virtual StartSuiteRunResponse StartSuiteRun(StartSuiteRunRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StartSuiteRunRequestMarshaller.Instance; options.ResponseUnmarshaller = StartSuiteRunResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the StartSuiteRun operation. /// /// /// Container for the necessary parameters to execute the StartSuiteRun operation on AmazonIoTDeviceAdvisorClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndStartSuiteRun /// operation. /// REST API Reference for StartSuiteRun Operation public virtual IAsyncResult BeginStartSuiteRun(StartSuiteRunRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = StartSuiteRunRequestMarshaller.Instance; options.ResponseUnmarshaller = StartSuiteRunResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the StartSuiteRun operation. /// /// /// The IAsyncResult returned by the call to BeginStartSuiteRun. /// /// Returns a StartSuiteRunResult from IoTDeviceAdvisor. /// REST API Reference for StartSuiteRun Operation public virtual StartSuiteRunResponse EndStartSuiteRun(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region StopSuiteRun /// /// Stops a Device Advisor test suite run that is currently running. /// /// /// /// Requires permission to access the StopSuiteRun /// action. /// /// /// Container for the necessary parameters to execute the StopSuiteRun service method. /// /// The response from the StopSuiteRun service method, as returned by IoTDeviceAdvisor. /// /// Sends an Internal Failure exception. /// /// /// Sends a Resource Not Found exception. /// /// /// Sends a validation exception. /// /// REST API Reference for StopSuiteRun Operation public virtual StopSuiteRunResponse StopSuiteRun(StopSuiteRunRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StopSuiteRunRequestMarshaller.Instance; options.ResponseUnmarshaller = StopSuiteRunResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the StopSuiteRun operation. /// /// /// Container for the necessary parameters to execute the StopSuiteRun operation on AmazonIoTDeviceAdvisorClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndStopSuiteRun /// operation. /// REST API Reference for StopSuiteRun Operation public virtual IAsyncResult BeginStopSuiteRun(StopSuiteRunRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = StopSuiteRunRequestMarshaller.Instance; options.ResponseUnmarshaller = StopSuiteRunResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the StopSuiteRun operation. /// /// /// The IAsyncResult returned by the call to BeginStopSuiteRun. /// /// Returns a StopSuiteRunResult from IoTDeviceAdvisor. /// REST API Reference for StopSuiteRun Operation public virtual StopSuiteRunResponse EndStopSuiteRun(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region TagResource /// /// Adds to and modifies existing tags of an IoT Device Advisor resource. /// /// /// /// Requires permission to access the TagResource /// action. /// /// /// Container for the necessary parameters to execute the TagResource service method. /// /// The response from the TagResource service method, as returned by IoTDeviceAdvisor. /// /// Sends an Internal Failure exception. /// /// /// Sends a Resource Not Found exception. /// /// /// Sends a validation exception. /// /// 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); } /// /// Initiates the asynchronous execution of the TagResource operation. /// /// /// Container for the necessary parameters to execute the TagResource operation on AmazonIoTDeviceAdvisorClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndTagResource /// operation. /// REST API Reference for TagResource Operation 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); } /// /// Finishes the asynchronous execution of the TagResource operation. /// /// /// The IAsyncResult returned by the call to BeginTagResource. /// /// Returns a TagResourceResult from IoTDeviceAdvisor. /// REST API Reference for TagResource Operation public virtual TagResourceResponse EndTagResource(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region UntagResource /// /// Removes tags from an IoT Device Advisor resource. /// /// /// /// Requires permission to access the UntagResource /// action. /// /// /// Container for the necessary parameters to execute the UntagResource service method. /// /// The response from the UntagResource service method, as returned by IoTDeviceAdvisor. /// /// Sends an Internal Failure exception. /// /// /// Sends a Resource Not Found exception. /// /// /// Sends a validation exception. /// /// 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); } /// /// Initiates the asynchronous execution of the UntagResource operation. /// /// /// Container for the necessary parameters to execute the UntagResource operation on AmazonIoTDeviceAdvisorClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUntagResource /// operation. /// REST API Reference for UntagResource Operation 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); } /// /// Finishes the asynchronous execution of the UntagResource operation. /// /// /// The IAsyncResult returned by the call to BeginUntagResource. /// /// Returns a UntagResourceResult from IoTDeviceAdvisor. /// REST API Reference for UntagResource Operation public virtual UntagResourceResponse EndUntagResource(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region UpdateSuiteDefinition /// /// Updates a Device Advisor test suite. /// /// /// /// Requires permission to access the UpdateSuiteDefinition /// action. /// /// /// Container for the necessary parameters to execute the UpdateSuiteDefinition service method. /// /// The response from the UpdateSuiteDefinition service method, as returned by IoTDeviceAdvisor. /// /// Sends an Internal Failure exception. /// /// /// Sends a validation exception. /// /// REST API Reference for UpdateSuiteDefinition Operation public virtual UpdateSuiteDefinitionResponse UpdateSuiteDefinition(UpdateSuiteDefinitionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateSuiteDefinitionRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateSuiteDefinitionResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the UpdateSuiteDefinition operation. /// /// /// Container for the necessary parameters to execute the UpdateSuiteDefinition operation on AmazonIoTDeviceAdvisorClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateSuiteDefinition /// operation. /// REST API Reference for UpdateSuiteDefinition Operation public virtual IAsyncResult BeginUpdateSuiteDefinition(UpdateSuiteDefinitionRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateSuiteDefinitionRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateSuiteDefinitionResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the UpdateSuiteDefinition operation. /// /// /// The IAsyncResult returned by the call to BeginUpdateSuiteDefinition. /// /// Returns a UpdateSuiteDefinitionResult from IoTDeviceAdvisor. /// REST API Reference for UpdateSuiteDefinition Operation public virtual UpdateSuiteDefinitionResponse EndUpdateSuiteDefinition(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion } }