@@ -322,6 +322,40 @@ defmodule AWS.IoTSiteWise do
322322 )
323323 end
324324
325+ @ doc """
326+ This API operation is in preview release for IoT SiteWise and is subject to
327+ change.
328+
329+ We recommend that you use this operation only with test data, and not in
330+ production environments.
331+
332+ Defines a job to ingest data to IoT SiteWise from Amazon S3. For more
333+ information, see [Create a bulk import job (CLI)](https://docs.aws.amazon.com/iot-sitewise/latest/userguide/CreateBulkImportJob.html)
334+ in the *Amazon Simple Storage Service User Guide*.
335+
336+ You must enable IoT SiteWise to export data to Amazon S3 before you create a
337+ bulk import job. For more information about how to configure storage settings,
338+ see
339+ [PutStorageConfiguration](https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_PutStorageConfiguration.html).
340+ """
341+ def create_bulk_import_job ( % Client { } = client , input , options \\ [ ] ) do
342+ url_path = "/jobs"
343+ headers = [ ]
344+ query_params = [ ]
345+
346+ Request . request_rest (
347+ client ,
348+ metadata ( ) ,
349+ :post ,
350+ url_path ,
351+ query_params ,
352+ headers ,
353+ input ,
354+ options ,
355+ 202
356+ )
357+ end
358+
325359 @ doc """
326360 Creates a dashboard in an IoT SiteWise Monitor project.
327361 """
@@ -758,6 +792,35 @@ defmodule AWS.IoTSiteWise do
758792 )
759793 end
760794
795+ @ doc """
796+ This API operation is in preview release for IoT SiteWise and is subject to
797+ change.
798+
799+ We recommend that you use this operation only with test data, and not in
800+ production environments.
801+
802+ Retrieves information about a bulk import job request. For more information, see
803+ [Describe a bulk import job (CLI)](https://docs.aws.amazon.com/iot-sitewise/latest/userguide/DescribeBulkImportJob.html)
804+ in the *Amazon Simple Storage Service User Guide*.
805+ """
806+ def describe_bulk_import_job ( % Client { } = client , job_id , options \\ [ ] ) do
807+ url_path = "/jobs/#{ AWS.Util . encode_uri ( job_id ) } "
808+ headers = [ ]
809+ query_params = [ ]
810+
811+ Request . request_rest (
812+ client ,
813+ metadata ( ) ,
814+ :get ,
815+ url_path ,
816+ query_params ,
817+ headers ,
818+ nil ,
819+ options ,
820+ nil
821+ )
822+ end
823+
761824 @ doc """
762825 Retrieves information about a dashboard.
763826 """
@@ -1792,6 +1855,62 @@ defmodule AWS.IoTSiteWise do
17921855 )
17931856 end
17941857
1858+ @ doc """
1859+ This API operation is in preview release for IoT SiteWise and is subject to
1860+ change.
1861+
1862+ We recommend that you use this operation only with test data, and not in
1863+ production environments.
1864+
1865+ Retrieves a paginated list of bulk import job requests. For more information,
1866+ see [List bulk import jobs (CLI)](https://docs.aws.amazon.com/iot-sitewise/latest/userguide/ListBulkImportJobs.html)
1867+ in the *Amazon Simple Storage Service User Guide*.
1868+ """
1869+ def list_bulk_import_jobs (
1870+ % Client { } = client ,
1871+ filter \\ nil ,
1872+ max_results \\ nil ,
1873+ next_token \\ nil ,
1874+ options \\ [ ]
1875+ ) do
1876+ url_path = "/jobs"
1877+ headers = [ ]
1878+ query_params = [ ]
1879+
1880+ query_params =
1881+ if ! is_nil ( next_token ) do
1882+ [ { "nextToken" , next_token } | query_params ]
1883+ else
1884+ query_params
1885+ end
1886+
1887+ query_params =
1888+ if ! is_nil ( max_results ) do
1889+ [ { "maxResults" , max_results } | query_params ]
1890+ else
1891+ query_params
1892+ end
1893+
1894+ query_params =
1895+ if ! is_nil ( filter ) do
1896+ [ { "filter" , filter } | query_params ]
1897+ else
1898+ query_params
1899+ end
1900+
1901+ Request . request_rest (
1902+ client ,
1903+ metadata ( ) ,
1904+ :get ,
1905+ url_path ,
1906+ query_params ,
1907+ headers ,
1908+ nil ,
1909+ options ,
1910+ nil
1911+ )
1912+ end
1913+
17951914 @ doc """
17961915 Retrieves a paginated list of dashboards for an IoT SiteWise Monitor project.
17971916 """
0 commit comments