aws-sdk-codecatalyst 1.11.0 → 1.12.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ef1913258526d65b5532eba31ec8631b8800892163f4140bc1bcf39d3a719e5b
4
- data.tar.gz: 1b1078aa7b6a0975bb91c9ed161ec038715f378d1f1c57f47457013d50c40418
3
+ metadata.gz: 314a3f217ada79d632e17d60076b218c71253ae11dc57b5d9e06521aa4b0c0be
4
+ data.tar.gz: 4e273f3fba9af74ec3394fe0676f0af623b6668160b16ca6a6157a671b6bbcdd
5
5
  SHA512:
6
- metadata.gz: 21a173609e3cfa095500608e131f875109fded23269f9cafd9222d98b3773322fcf6b79badebcea943f7db9d0249cd38fefdd1c7ef91e3317c70a78a4be50161
7
- data.tar.gz: 4102706fc8ba675b5b2f5857e20db8051c00969d29f8d1f013366845398ceb8b823d15dfef46788bfcf43acd66138522e894f9f928ef62be833aee6a5c8ae82d
6
+ metadata.gz: 5374f0f4958ccf52be5c9e87ea1a30f9780fb381c9fc360483b6a11a58c70f937b84bc507ef27bf60f0e50110525aeb42730ebb8f26ed1c1c0045601ca8bd8cb
7
+ data.tar.gz: cc3d08f3cfa4b36d56806e858ffd8fe24bacadf34ef3c9190f172398a011824badc85e94f928ea5e97300d0274cd99825507c3ca2911c51bda790b146e3ad805
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.12.0 (2023-11-15)
5
+ ------------------
6
+
7
+ * Feature - This release adds functionality for retrieving information about workflows and workflow runs and starting workflow runs in Amazon CodeCatalyst.
8
+
4
9
  1.11.0 (2023-09-27)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.11.0
1
+ 1.12.0
@@ -1180,6 +1180,116 @@ module Aws::CodeCatalyst
1180
1180
  req.send_request(options)
1181
1181
  end
1182
1182
 
1183
+ # Returns information about a workflow.
1184
+ #
1185
+ # @option params [required, String] :space_name
1186
+ # The name of the space.
1187
+ #
1188
+ # @option params [required, String] :id
1189
+ # The ID of the workflow. To rerieve a list of workflow IDs, use
1190
+ # ListWorkflows.
1191
+ #
1192
+ # @option params [required, String] :project_name
1193
+ # The name of the project in the space.
1194
+ #
1195
+ # @return [Types::GetWorkflowResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1196
+ #
1197
+ # * {Types::GetWorkflowResponse#space_name #space_name} => String
1198
+ # * {Types::GetWorkflowResponse#project_name #project_name} => String
1199
+ # * {Types::GetWorkflowResponse#id #id} => String
1200
+ # * {Types::GetWorkflowResponse#name #name} => String
1201
+ # * {Types::GetWorkflowResponse#source_repository_name #source_repository_name} => String
1202
+ # * {Types::GetWorkflowResponse#source_branch_name #source_branch_name} => String
1203
+ # * {Types::GetWorkflowResponse#definition #definition} => Types::WorkflowDefinition
1204
+ # * {Types::GetWorkflowResponse#created_time #created_time} => Time
1205
+ # * {Types::GetWorkflowResponse#last_updated_time #last_updated_time} => Time
1206
+ # * {Types::GetWorkflowResponse#run_mode #run_mode} => String
1207
+ # * {Types::GetWorkflowResponse#status #status} => String
1208
+ #
1209
+ # @example Request syntax with placeholder values
1210
+ #
1211
+ # resp = client.get_workflow({
1212
+ # space_name: "NameString", # required
1213
+ # id: "Uuid", # required
1214
+ # project_name: "GetWorkflowRequestProjectNameString", # required
1215
+ # })
1216
+ #
1217
+ # @example Response structure
1218
+ #
1219
+ # resp.space_name #=> String
1220
+ # resp.project_name #=> String
1221
+ # resp.id #=> String
1222
+ # resp.name #=> String
1223
+ # resp.source_repository_name #=> String
1224
+ # resp.source_branch_name #=> String
1225
+ # resp.definition.path #=> String
1226
+ # resp.created_time #=> Time
1227
+ # resp.last_updated_time #=> Time
1228
+ # resp.run_mode #=> String, one of "QUEUED", "PARALLEL", "SUPERSEDED"
1229
+ # resp.status #=> String, one of "INVALID", "ACTIVE"
1230
+ #
1231
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codecatalyst-2022-09-28/GetWorkflow AWS API Documentation
1232
+ #
1233
+ # @overload get_workflow(params = {})
1234
+ # @param [Hash] params ({})
1235
+ def get_workflow(params = {}, options = {})
1236
+ req = build_request(:get_workflow, params)
1237
+ req.send_request(options)
1238
+ end
1239
+
1240
+ # Returns information about a specified run of a workflow.
1241
+ #
1242
+ # @option params [required, String] :space_name
1243
+ # The name of the space.
1244
+ #
1245
+ # @option params [required, String] :id
1246
+ # The ID of the workflow run. To retrieve a list of workflow run IDs,
1247
+ # use ListWorkflowRuns.
1248
+ #
1249
+ # @option params [required, String] :project_name
1250
+ # The name of the project in the space.
1251
+ #
1252
+ # @return [Types::GetWorkflowRunResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1253
+ #
1254
+ # * {Types::GetWorkflowRunResponse#space_name #space_name} => String
1255
+ # * {Types::GetWorkflowRunResponse#project_name #project_name} => String
1256
+ # * {Types::GetWorkflowRunResponse#id #id} => String
1257
+ # * {Types::GetWorkflowRunResponse#workflow_id #workflow_id} => String
1258
+ # * {Types::GetWorkflowRunResponse#status #status} => String
1259
+ # * {Types::GetWorkflowRunResponse#status_reasons #status_reasons} => Array<Types::WorkflowRunStatusReason>
1260
+ # * {Types::GetWorkflowRunResponse#start_time #start_time} => Time
1261
+ # * {Types::GetWorkflowRunResponse#end_time #end_time} => Time
1262
+ # * {Types::GetWorkflowRunResponse#last_updated_time #last_updated_time} => Time
1263
+ #
1264
+ # @example Request syntax with placeholder values
1265
+ #
1266
+ # resp = client.get_workflow_run({
1267
+ # space_name: "NameString", # required
1268
+ # id: "Uuid", # required
1269
+ # project_name: "GetWorkflowRunRequestProjectNameString", # required
1270
+ # })
1271
+ #
1272
+ # @example Response structure
1273
+ #
1274
+ # resp.space_name #=> String
1275
+ # resp.project_name #=> String
1276
+ # resp.id #=> String
1277
+ # resp.workflow_id #=> String
1278
+ # resp.status #=> String, one of "SUCCEEDED", "FAILED", "STOPPED", "SUPERSEDED", "CANCELLED", "NOT_RUN", "VALIDATING", "PROVISIONING", "IN_PROGRESS", "STOPPING", "ABANDONED"
1279
+ # resp.status_reasons #=> Array
1280
+ # resp.start_time #=> Time
1281
+ # resp.end_time #=> Time
1282
+ # resp.last_updated_time #=> Time
1283
+ #
1284
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codecatalyst-2022-09-28/GetWorkflowRun AWS API Documentation
1285
+ #
1286
+ # @overload get_workflow_run(params = {})
1287
+ # @param [Hash] params ({})
1288
+ def get_workflow_run(params = {}, options = {})
1289
+ req = build_request(:get_workflow_run, params)
1290
+ req.send_request(options)
1291
+ end
1292
+
1183
1293
  # Lists all personal access tokens (PATs) associated with the user who
1184
1294
  # calls the API. You can only list PATs associated with your Amazon Web
1185
1295
  # Services Builder ID.
@@ -1288,7 +1398,7 @@ module Aws::CodeCatalyst
1288
1398
  # @option params [required, String] :space_name
1289
1399
  # The name of the space.
1290
1400
  #
1291
- # @option params [required, String] :project_name
1401
+ # @option params [String] :project_name
1292
1402
  # The name of the project in the space.
1293
1403
  #
1294
1404
  # @option params [Array<Types::Filter>] :filters
@@ -1316,7 +1426,7 @@ module Aws::CodeCatalyst
1316
1426
  #
1317
1427
  # resp = client.list_dev_environments({
1318
1428
  # space_name: "NameString", # required
1319
- # project_name: "NameString", # required
1429
+ # project_name: "NameString",
1320
1430
  # filters: [
1321
1431
  # {
1322
1432
  # key: "String", # required
@@ -1359,9 +1469,26 @@ module Aws::CodeCatalyst
1359
1469
  req.send_request(options)
1360
1470
  end
1361
1471
 
1362
- # Retrieves a list of events that occurred during a specified time
1363
- # period in a space. You can use these events to audit user and system
1364
- # activity in a space.
1472
+ # Retrieves a list of events that occurred during a specific time in a
1473
+ # space. You can use these events to audit user and system activity in a
1474
+ # space. For more information, see [Monitoring][1] in the *Amazon
1475
+ # CodeCatalyst User Guide*.
1476
+ #
1477
+ # <note markdown="1"> ListEventLogs guarantees events for the last 30 days in a given space.
1478
+ # You can also view and retrieve a list of management events over the
1479
+ # last 90 days for Amazon CodeCatalyst in the CloudTrail console by
1480
+ # viewing Event history, or by creating a trail to create and maintain a
1481
+ # record of events that extends past 90 days. For more information, see
1482
+ # [Working with CloudTrail Event History][2] and [Working with
1483
+ # CloudTrail trails][3].
1484
+ #
1485
+ # </note>
1486
+ #
1487
+ #
1488
+ #
1489
+ # [1]: https://docs.aws.amazon.com/codecatalyst/latest/userguide/ipa-monitoring.html
1490
+ # [2]: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/view-cloudtrail-events.html
1491
+ # [3]: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-getting-started.html
1365
1492
  #
1366
1493
  # @option params [required, String] :space_name
1367
1494
  # The name of the space.
@@ -1484,9 +1611,9 @@ module Aws::CodeCatalyst
1484
1611
  # max_results: 1,
1485
1612
  # filters: [
1486
1613
  # {
1487
- # key: "hasAccessTo", # required, accepts hasAccessTo
1614
+ # key: "hasAccessTo", # required, accepts hasAccessTo, name
1488
1615
  # values: ["String"], # required
1489
- # comparison_operator: "EQ", # accepts EQ, GT, GE, LT, LE
1616
+ # comparison_operator: "EQ", # accepts EQ, GT, GE, LT, LE, BEGINS_WITH
1490
1617
  # },
1491
1618
  # ],
1492
1619
  # })
@@ -1654,6 +1781,138 @@ module Aws::CodeCatalyst
1654
1781
  req.send_request(options)
1655
1782
  end
1656
1783
 
1784
+ # Retrieves a list of workflow runs of a specified workflow.
1785
+ #
1786
+ # @option params [required, String] :space_name
1787
+ # The name of the space.
1788
+ #
1789
+ # @option params [String] :workflow_id
1790
+ # The ID of the workflow. To retrieve a list of workflow IDs, use
1791
+ # ListWorkflows.
1792
+ #
1793
+ # @option params [required, String] :project_name
1794
+ # The name of the project in the space.
1795
+ #
1796
+ # @option params [String] :next_token
1797
+ # A token returned from a call to this API to indicate the next batch of
1798
+ # results to return, if any.
1799
+ #
1800
+ # @option params [Integer] :max_results
1801
+ # The maximum number of results to show in a single call to this API. If
1802
+ # the number of results is larger than the number you specified, the
1803
+ # response will include a `NextToken` element, which you can use to
1804
+ # obtain additional results.
1805
+ #
1806
+ # @option params [Array<Types::WorkflowRunSortCriteria>] :sort_by
1807
+ # Information used to sort the items in the returned list.
1808
+ #
1809
+ # @return [Types::ListWorkflowRunsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1810
+ #
1811
+ # * {Types::ListWorkflowRunsResponse#next_token #next_token} => String
1812
+ # * {Types::ListWorkflowRunsResponse#items #items} => Array&lt;Types::WorkflowRunSummary&gt;
1813
+ #
1814
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1815
+ #
1816
+ # @example Request syntax with placeholder values
1817
+ #
1818
+ # resp = client.list_workflow_runs({
1819
+ # space_name: "NameString", # required
1820
+ # workflow_id: "Uuid",
1821
+ # project_name: "ListWorkflowRunsRequestProjectNameString", # required
1822
+ # next_token: "ListWorkflowRunsRequestNextTokenString",
1823
+ # max_results: 1,
1824
+ # sort_by: [
1825
+ # {
1826
+ # },
1827
+ # ],
1828
+ # })
1829
+ #
1830
+ # @example Response structure
1831
+ #
1832
+ # resp.next_token #=> String
1833
+ # resp.items #=> Array
1834
+ # resp.items[0].id #=> String
1835
+ # resp.items[0].workflow_id #=> String
1836
+ # resp.items[0].workflow_name #=> String
1837
+ # resp.items[0].status #=> String, one of "SUCCEEDED", "FAILED", "STOPPED", "SUPERSEDED", "CANCELLED", "NOT_RUN", "VALIDATING", "PROVISIONING", "IN_PROGRESS", "STOPPING", "ABANDONED"
1838
+ # resp.items[0].status_reasons #=> Array
1839
+ # resp.items[0].start_time #=> Time
1840
+ # resp.items[0].end_time #=> Time
1841
+ # resp.items[0].last_updated_time #=> Time
1842
+ #
1843
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codecatalyst-2022-09-28/ListWorkflowRuns AWS API Documentation
1844
+ #
1845
+ # @overload list_workflow_runs(params = {})
1846
+ # @param [Hash] params ({})
1847
+ def list_workflow_runs(params = {}, options = {})
1848
+ req = build_request(:list_workflow_runs, params)
1849
+ req.send_request(options)
1850
+ end
1851
+
1852
+ # Retrieves a list of workflows in a specified project.
1853
+ #
1854
+ # @option params [required, String] :space_name
1855
+ # The name of the space.
1856
+ #
1857
+ # @option params [required, String] :project_name
1858
+ # The name of the project in the space.
1859
+ #
1860
+ # @option params [String] :next_token
1861
+ # A token returned from a call to this API to indicate the next batch of
1862
+ # results to return, if any.
1863
+ #
1864
+ # @option params [Integer] :max_results
1865
+ # The maximum number of results to show in a single call to this API. If
1866
+ # the number of results is larger than the number you specified, the
1867
+ # response will include a `NextToken` element, which you can use to
1868
+ # obtain additional results.
1869
+ #
1870
+ # @option params [Array<Types::WorkflowSortCriteria>] :sort_by
1871
+ # Information used to sort the items in the returned list.
1872
+ #
1873
+ # @return [Types::ListWorkflowsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1874
+ #
1875
+ # * {Types::ListWorkflowsResponse#next_token #next_token} => String
1876
+ # * {Types::ListWorkflowsResponse#items #items} => Array&lt;Types::WorkflowSummary&gt;
1877
+ #
1878
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1879
+ #
1880
+ # @example Request syntax with placeholder values
1881
+ #
1882
+ # resp = client.list_workflows({
1883
+ # space_name: "ListWorkflowsRequestSpaceNameString", # required
1884
+ # project_name: "NameString", # required
1885
+ # next_token: "ListWorkflowsRequestNextTokenString",
1886
+ # max_results: 1,
1887
+ # sort_by: [
1888
+ # {
1889
+ # },
1890
+ # ],
1891
+ # })
1892
+ #
1893
+ # @example Response structure
1894
+ #
1895
+ # resp.next_token #=> String
1896
+ # resp.items #=> Array
1897
+ # resp.items[0].id #=> String
1898
+ # resp.items[0].name #=> String
1899
+ # resp.items[0].source_repository_name #=> String
1900
+ # resp.items[0].source_branch_name #=> String
1901
+ # resp.items[0].definition.path #=> String
1902
+ # resp.items[0].created_time #=> Time
1903
+ # resp.items[0].last_updated_time #=> Time
1904
+ # resp.items[0].run_mode #=> String, one of "QUEUED", "PARALLEL", "SUPERSEDED"
1905
+ # resp.items[0].status #=> String, one of "INVALID", "ACTIVE"
1906
+ #
1907
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codecatalyst-2022-09-28/ListWorkflows AWS API Documentation
1908
+ #
1909
+ # @overload list_workflows(params = {})
1910
+ # @param [Hash] params ({})
1911
+ def list_workflows(params = {}, options = {})
1912
+ req = build_request(:list_workflows, params)
1913
+ req.send_request(options)
1914
+ end
1915
+
1657
1916
  # Starts a specified Dev Environment and puts it into an active state.
1658
1917
  #
1659
1918
  # @option params [required, String] :space_name
@@ -1771,6 +2030,60 @@ module Aws::CodeCatalyst
1771
2030
  req.send_request(options)
1772
2031
  end
1773
2032
 
2033
+ # Begins a run of a specified workflow.
2034
+ #
2035
+ # @option params [required, String] :space_name
2036
+ # The name of the space.
2037
+ #
2038
+ # @option params [required, String] :project_name
2039
+ # The name of the project in the space.
2040
+ #
2041
+ # @option params [required, String] :workflow_id
2042
+ # The system-generated unique ID of the workflow. To retrieve a list of
2043
+ # workflow IDs, use ListWorkflows.
2044
+ #
2045
+ # @option params [String] :client_token
2046
+ # A user-specified idempotency token. Idempotency ensures that an API
2047
+ # request completes only once. With an idempotent request, if the
2048
+ # original request completes successfully, the subsequent retries return
2049
+ # the result from the original successful request and have no additional
2050
+ # effect.
2051
+ #
2052
+ # **A suitable default value is auto-generated.** You should normally
2053
+ # not need to pass this option.**
2054
+ #
2055
+ # @return [Types::StartWorkflowRunResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2056
+ #
2057
+ # * {Types::StartWorkflowRunResponse#space_name #space_name} => String
2058
+ # * {Types::StartWorkflowRunResponse#project_name #project_name} => String
2059
+ # * {Types::StartWorkflowRunResponse#id #id} => String
2060
+ # * {Types::StartWorkflowRunResponse#workflow_id #workflow_id} => String
2061
+ #
2062
+ # @example Request syntax with placeholder values
2063
+ #
2064
+ # resp = client.start_workflow_run({
2065
+ # space_name: "StartWorkflowRunRequestSpaceNameString", # required
2066
+ # project_name: "StartWorkflowRunRequestProjectNameString", # required
2067
+ # workflow_id: "Uuid", # required
2068
+ # client_token: "StartWorkflowRunRequestClientTokenString",
2069
+ # })
2070
+ #
2071
+ # @example Response structure
2072
+ #
2073
+ # resp.space_name #=> String
2074
+ # resp.project_name #=> String
2075
+ # resp.id #=> String
2076
+ # resp.workflow_id #=> String
2077
+ #
2078
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codecatalyst-2022-09-28/StartWorkflowRun AWS API Documentation
2079
+ #
2080
+ # @overload start_workflow_run(params = {})
2081
+ # @param [Hash] params ({})
2082
+ def start_workflow_run(params = {}, options = {})
2083
+ req = build_request(:start_workflow_run, params)
2084
+ req.send_request(options)
2085
+ end
2086
+
1774
2087
  # Pauses a specified Dev Environment and places it in a non-running
1775
2088
  # state. Stopped Dev Environments do not consume compute minutes.
1776
2089
  #
@@ -2070,7 +2383,7 @@ module Aws::CodeCatalyst
2070
2383
  params: params,
2071
2384
  config: config)
2072
2385
  context[:gem_name] = 'aws-sdk-codecatalyst'
2073
- context[:gem_version] = '1.11.0'
2386
+ context[:gem_version] = '1.12.0'
2074
2387
  Seahorse::Client::Request.new(handlers, context)
2075
2388
  end
2076
2389