/*
* 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 iot1click-projects-2018-05-14.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.IoT1ClickProjects.Model;
using Amazon.IoT1ClickProjects.Model.Internal.MarshallTransformations;
using Amazon.IoT1ClickProjects.Internal;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Auth;
using Amazon.Runtime.Internal.Transform;
namespace Amazon.IoT1ClickProjects
{
///
/// Implementation for accessing IoT1ClickProjects
///
/// The AWS IoT 1-Click Projects API Reference
///
public partial class AmazonIoT1ClickProjectsClient : AmazonServiceClient, IAmazonIoT1ClickProjects
{
private static IServiceMetadata serviceMetadata = new AmazonIoT1ClickProjectsMetadata();
#region Constructors
///
/// Constructs AmazonIoT1ClickProjectsClient 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 AmazonIoT1ClickProjectsClient()
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonIoT1ClickProjectsConfig()) { }
///
/// Constructs AmazonIoT1ClickProjectsClient 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 AmazonIoT1ClickProjectsClient(RegionEndpoint region)
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonIoT1ClickProjectsConfig{RegionEndpoint = region}) { }
///
/// Constructs AmazonIoT1ClickProjectsClient 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 AmazonIoT1ClickProjectsClient Configuration Object
public AmazonIoT1ClickProjectsClient(AmazonIoT1ClickProjectsConfig config)
: base(FallbackCredentialsFactory.GetCredentials(config), config){}
///
/// Constructs AmazonIoT1ClickProjectsClient with AWS Credentials
///
/// AWS Credentials
public AmazonIoT1ClickProjectsClient(AWSCredentials credentials)
: this(credentials, new AmazonIoT1ClickProjectsConfig())
{
}
///
/// Constructs AmazonIoT1ClickProjectsClient with AWS Credentials
///
/// AWS Credentials
/// The region to connect.
public AmazonIoT1ClickProjectsClient(AWSCredentials credentials, RegionEndpoint region)
: this(credentials, new AmazonIoT1ClickProjectsConfig{RegionEndpoint = region})
{
}
///
/// Constructs AmazonIoT1ClickProjectsClient with AWS Credentials and an
/// AmazonIoT1ClickProjectsClient Configuration object.
///
/// AWS Credentials
/// The AmazonIoT1ClickProjectsClient Configuration Object
public AmazonIoT1ClickProjectsClient(AWSCredentials credentials, AmazonIoT1ClickProjectsConfig clientConfig)
: base(credentials, clientConfig)
{
}
///
/// Constructs AmazonIoT1ClickProjectsClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
public AmazonIoT1ClickProjectsClient(string awsAccessKeyId, string awsSecretAccessKey)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonIoT1ClickProjectsConfig())
{
}
///
/// Constructs AmazonIoT1ClickProjectsClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// The region to connect.
public AmazonIoT1ClickProjectsClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonIoT1ClickProjectsConfig() {RegionEndpoint=region})
{
}
///
/// Constructs AmazonIoT1ClickProjectsClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonIoT1ClickProjectsClient Configuration object.
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// The AmazonIoT1ClickProjectsClient Configuration Object
public AmazonIoT1ClickProjectsClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonIoT1ClickProjectsConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, clientConfig)
{
}
///
/// Constructs AmazonIoT1ClickProjectsClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// AWS Session Token
public AmazonIoT1ClickProjectsClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonIoT1ClickProjectsConfig())
{
}
///
/// Constructs AmazonIoT1ClickProjectsClient 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 AmazonIoT1ClickProjectsClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonIoT1ClickProjectsConfig{RegionEndpoint = region})
{
}
///
/// Constructs AmazonIoT1ClickProjectsClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonIoT1ClickProjectsClient Configuration object.
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// AWS Session Token
/// The AmazonIoT1ClickProjectsClient Configuration Object
public AmazonIoT1ClickProjectsClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonIoT1ClickProjectsConfig 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 AmazonIoT1ClickProjectsEndpointResolver());
}
///
/// 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 AssociateDeviceWithPlacement
///
/// Associates a physical device with a placement.
///
/// Container for the necessary parameters to execute the AssociateDeviceWithPlacement service method.
///
/// The response from the AssociateDeviceWithPlacement service method, as returned by IoT1ClickProjects.
///
///
///
///
///
///
///
///
///
///
///
///
/// REST API Reference for AssociateDeviceWithPlacement Operation
public virtual AssociateDeviceWithPlacementResponse AssociateDeviceWithPlacement(AssociateDeviceWithPlacementRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = AssociateDeviceWithPlacementRequestMarshaller.Instance;
options.ResponseUnmarshaller = AssociateDeviceWithPlacementResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Associates a physical device with a placement.
///
/// Container for the necessary parameters to execute the AssociateDeviceWithPlacement service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the AssociateDeviceWithPlacement service method, as returned by IoT1ClickProjects.
///
///
///
///
///
///
///
///
///
///
///
///
/// REST API Reference for AssociateDeviceWithPlacement Operation
public virtual Task AssociateDeviceWithPlacementAsync(AssociateDeviceWithPlacementRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = AssociateDeviceWithPlacementRequestMarshaller.Instance;
options.ResponseUnmarshaller = AssociateDeviceWithPlacementResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region CreatePlacement
///
/// Creates an empty placement.
///
/// Container for the necessary parameters to execute the CreatePlacement service method.
///
/// The response from the CreatePlacement service method, as returned by IoT1ClickProjects.
///
///
///
///
///
///
///
///
///
///
///
///
/// REST API Reference for CreatePlacement Operation
public virtual CreatePlacementResponse CreatePlacement(CreatePlacementRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreatePlacementRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreatePlacementResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Creates an empty placement.
///
/// Container for the necessary parameters to execute the CreatePlacement service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CreatePlacement service method, as returned by IoT1ClickProjects.
///
///
///
///
///
///
///
///
///
///
///
///
/// REST API Reference for CreatePlacement Operation
public virtual Task CreatePlacementAsync(CreatePlacementRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreatePlacementRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreatePlacementResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region CreateProject
///
/// Creates an empty project with a placement template. A project contains zero or more
/// placements that adhere to the placement template defined in the project.
///
/// Container for the necessary parameters to execute the CreateProject service method.
///
/// The response from the CreateProject service method, as returned by IoT1ClickProjects.
///
///
///
///
///
///
///
///
///
/// REST API Reference for CreateProject Operation
public virtual CreateProjectResponse CreateProject(CreateProjectRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateProjectRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateProjectResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Creates an empty project with a placement template. A project contains zero or more
/// placements that adhere to the placement template defined in the project.
///
/// Container for the necessary parameters to execute the CreateProject service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CreateProject service method, as returned by IoT1ClickProjects.
///
///
///
///
///
///
///
///
///
/// REST API Reference for CreateProject Operation
public virtual Task CreateProjectAsync(CreateProjectRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateProjectRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateProjectResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DeletePlacement
///
/// Deletes a placement. To delete a placement, it must not have any devices associated
/// with it.
///
///
///
/// When you delete a placement, all associated data becomes irretrievable.
///
///
///
/// Container for the necessary parameters to execute the DeletePlacement service method.
///
/// The response from the DeletePlacement service method, as returned by IoT1ClickProjects.
///
///
///
///
///
///
///
///
///
///
///
///
/// REST API Reference for DeletePlacement Operation
public virtual DeletePlacementResponse DeletePlacement(DeletePlacementRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeletePlacementRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeletePlacementResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Deletes a placement. To delete a placement, it must not have any devices associated
/// with it.
///
///
///
/// When you delete a placement, all associated data becomes irretrievable.
///
///
///
/// Container for the necessary parameters to execute the DeletePlacement service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeletePlacement service method, as returned by IoT1ClickProjects.
///
///
///
///
///
///
///
///
///
///
///
///
/// REST API Reference for DeletePlacement Operation
public virtual Task DeletePlacementAsync(DeletePlacementRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeletePlacementRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeletePlacementResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DeleteProject
///
/// Deletes a project. To delete a project, it must not have any placements associated
/// with it.
///
///
///
/// When you delete a project, all associated data becomes irretrievable.
///
///
///
/// Container for the necessary parameters to execute the DeleteProject service method.
///
/// The response from the DeleteProject service method, as returned by IoT1ClickProjects.
///
///
///
///
///
///
///
///
///
///
///
///
/// REST API Reference for DeleteProject Operation
public virtual DeleteProjectResponse DeleteProject(DeleteProjectRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteProjectRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteProjectResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Deletes a project. To delete a project, it must not have any placements associated
/// with it.
///
///
///
/// When you delete a project, all associated data becomes irretrievable.
///
///
///
/// Container for the necessary parameters to execute the DeleteProject service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeleteProject service method, as returned by IoT1ClickProjects.
///
///
///
///
///
///
///
///
///
///
///
///
/// REST API Reference for DeleteProject Operation
public virtual Task DeleteProjectAsync(DeleteProjectRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteProjectRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteProjectResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DescribePlacement
///
/// Describes a placement in a project.
///
/// Container for the necessary parameters to execute the DescribePlacement service method.
///
/// The response from the DescribePlacement service method, as returned by IoT1ClickProjects.
///
///
///
///
///
///
///
///
///
/// REST API Reference for DescribePlacement Operation
public virtual DescribePlacementResponse DescribePlacement(DescribePlacementRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribePlacementRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribePlacementResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Describes a placement in a project.
///
/// Container for the necessary parameters to execute the DescribePlacement service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DescribePlacement service method, as returned by IoT1ClickProjects.
///
///
///
///
///
///
///
///
///
/// REST API Reference for DescribePlacement Operation
public virtual Task DescribePlacementAsync(DescribePlacementRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribePlacementRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribePlacementResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DescribeProject
///
/// Returns an object describing a project.
///
/// Container for the necessary parameters to execute the DescribeProject service method.
///
/// The response from the DescribeProject service method, as returned by IoT1ClickProjects.
///
///
///
///
///
///
///
///
///
/// REST API Reference for DescribeProject Operation
public virtual DescribeProjectResponse DescribeProject(DescribeProjectRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeProjectRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeProjectResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Returns an object describing a project.
///
/// Container for the necessary parameters to execute the DescribeProject service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DescribeProject service method, as returned by IoT1ClickProjects.
///
///
///
///
///
///
///
///
///
/// REST API Reference for DescribeProject Operation
public virtual Task DescribeProjectAsync(DescribeProjectRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeProjectRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeProjectResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DisassociateDeviceFromPlacement
///
/// Removes a physical device from a placement.
///
/// Container for the necessary parameters to execute the DisassociateDeviceFromPlacement service method.
///
/// The response from the DisassociateDeviceFromPlacement service method, as returned by IoT1ClickProjects.
///
///
///
///
///
///
///
///
///
///
///
///
/// REST API Reference for DisassociateDeviceFromPlacement Operation
public virtual DisassociateDeviceFromPlacementResponse DisassociateDeviceFromPlacement(DisassociateDeviceFromPlacementRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DisassociateDeviceFromPlacementRequestMarshaller.Instance;
options.ResponseUnmarshaller = DisassociateDeviceFromPlacementResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Removes a physical device from a placement.
///
/// Container for the necessary parameters to execute the DisassociateDeviceFromPlacement service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DisassociateDeviceFromPlacement service method, as returned by IoT1ClickProjects.
///
///
///
///
///
///
///
///
///
///
///
///
/// REST API Reference for DisassociateDeviceFromPlacement Operation
public virtual Task DisassociateDeviceFromPlacementAsync(DisassociateDeviceFromPlacementRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DisassociateDeviceFromPlacementRequestMarshaller.Instance;
options.ResponseUnmarshaller = DisassociateDeviceFromPlacementResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region GetDevicesInPlacement
///
/// Returns an object enumerating the devices in a placement.
///
/// Container for the necessary parameters to execute the GetDevicesInPlacement service method.
///
/// The response from the GetDevicesInPlacement service method, as returned by IoT1ClickProjects.
///
///
///
///
///
///
///
///
///
/// REST API Reference for GetDevicesInPlacement Operation
public virtual GetDevicesInPlacementResponse GetDevicesInPlacement(GetDevicesInPlacementRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetDevicesInPlacementRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetDevicesInPlacementResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Returns an object enumerating the devices in a placement.
///
/// Container for the necessary parameters to execute the GetDevicesInPlacement service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetDevicesInPlacement service method, as returned by IoT1ClickProjects.
///
///
///
///
///
///
///
///
///
/// REST API Reference for GetDevicesInPlacement Operation
public virtual Task GetDevicesInPlacementAsync(GetDevicesInPlacementRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetDevicesInPlacementRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetDevicesInPlacementResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListPlacements
///
/// Lists the placement(s) of a project.
///
/// Container for the necessary parameters to execute the ListPlacements service method.
///
/// The response from the ListPlacements service method, as returned by IoT1ClickProjects.
///
///
///
///
///
///
///
///
///
/// REST API Reference for ListPlacements Operation
public virtual ListPlacementsResponse ListPlacements(ListPlacementsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListPlacementsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListPlacementsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Lists the placement(s) of a project.
///
/// Container for the necessary parameters to execute the ListPlacements service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListPlacements service method, as returned by IoT1ClickProjects.
///
///
///
///
///
///
///
///
///
/// REST API Reference for ListPlacements Operation
public virtual Task ListPlacementsAsync(ListPlacementsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListPlacementsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListPlacementsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListProjects
///
/// Lists the AWS IoT 1-Click project(s) associated with your AWS account and region.
///
/// Container for the necessary parameters to execute the ListProjects service method.
///
/// The response from the ListProjects service method, as returned by IoT1ClickProjects.
///
///
///
///
///
///
/// REST API Reference for ListProjects Operation
public virtual ListProjectsResponse ListProjects(ListProjectsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListProjectsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListProjectsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Lists the AWS IoT 1-Click project(s) associated with your AWS account and region.
///
/// Container for the necessary parameters to execute the ListProjects service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListProjects service method, as returned by IoT1ClickProjects.
///
///
///
///
///
///
/// REST API Reference for ListProjects Operation
public virtual Task ListProjectsAsync(ListProjectsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListProjectsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListProjectsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListTagsForResource
///
/// Lists the tags (metadata key/value pairs) which you have assigned to the resource.
///
/// Container for the necessary parameters to execute the ListTagsForResource service method.
///
/// The response from the ListTagsForResource service method, as returned by IoT1ClickProjects.
///
///
///
///
///
///
///
///
///
/// 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);
}
///
/// Lists the tags (metadata key/value pairs) which you have assigned to the 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 IoT1ClickProjects.
///
///
///
///
///
///
///
///
///
/// 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 TagResource
///
/// Creates or modifies tags for a resource. Tags are key/value pairs (metadata) that
/// can be used to manage a resource. For more information, see AWS
/// Tagging Strategies.
///
/// Container for the necessary parameters to execute the TagResource service method.
///
/// The response from the TagResource service method, as returned by IoT1ClickProjects.
///
///
///
///
///
///
///
///
///
/// 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);
}
///
/// Creates or modifies tags for a resource. Tags are key/value pairs (metadata) that
/// can be used to manage a resource. For more information, see AWS
/// Tagging Strategies.
///
/// 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 IoT1ClickProjects.
///
///
///
///
///
///
///
///
///
/// 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
///
/// Removes one or more tags (metadata key/value pairs) from a resource.
///
/// Container for the necessary parameters to execute the UntagResource service method.
///
/// The response from the UntagResource service method, as returned by IoT1ClickProjects.
///
///
///
///
///
///
///
///
///
/// 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);
}
///
/// Removes one or more tags (metadata key/value pairs) 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 IoT1ClickProjects.
///
///
///
///
///
///
///
///
///
/// 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
#region UpdatePlacement
///
/// Updates a placement with the given attributes. To clear an attribute, pass an empty
/// value (i.e., "").
///
/// Container for the necessary parameters to execute the UpdatePlacement service method.
///
/// The response from the UpdatePlacement service method, as returned by IoT1ClickProjects.
///
///
///
///
///
///
///
///
///
///
///
///
/// REST API Reference for UpdatePlacement Operation
public virtual UpdatePlacementResponse UpdatePlacement(UpdatePlacementRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdatePlacementRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdatePlacementResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Updates a placement with the given attributes. To clear an attribute, pass an empty
/// value (i.e., "").
///
/// Container for the necessary parameters to execute the UpdatePlacement service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the UpdatePlacement service method, as returned by IoT1ClickProjects.
///
///
///
///
///
///
///
///
///
///
///
///
/// REST API Reference for UpdatePlacement Operation
public virtual Task UpdatePlacementAsync(UpdatePlacementRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdatePlacementRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdatePlacementResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region UpdateProject
///
/// Updates a project associated with your AWS account and region. With the exception
/// of device template names, you can pass just the values that need to be updated because
/// the update request will change only the values that are provided. To clear a value,
/// pass the empty string (i.e., ""
).
///
/// Container for the necessary parameters to execute the UpdateProject service method.
///
/// The response from the UpdateProject service method, as returned by IoT1ClickProjects.
///
///
///
///
///
///
///
///
///
///
///
///
/// REST API Reference for UpdateProject Operation
public virtual UpdateProjectResponse UpdateProject(UpdateProjectRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateProjectRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateProjectResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Updates a project associated with your AWS account and region. With the exception
/// of device template names, you can pass just the values that need to be updated because
/// the update request will change only the values that are provided. To clear a value,
/// pass the empty string (i.e., ""
).
///
/// Container for the necessary parameters to execute the UpdateProject service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the UpdateProject service method, as returned by IoT1ClickProjects.
///
///
///
///
///
///
///
///
///
///
///
///
/// REST API Reference for UpdateProject Operation
public virtual Task UpdateProjectAsync(UpdateProjectRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateProjectRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateProjectResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
}
}