aws-sdk-codecatalyst 1.3.0 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 914cddf4b462e2402c712c402c5e074c9e61e1341d89fbf96bdc5978a9b03f02
4
- data.tar.gz: 566e537d50d365337a658ef188f28116d30b4764714484172920c944a81d90bd
3
+ metadata.gz: 5cd519b1fb36ca30350abf3562d237d7a43ab74824f56a272d5c3a8ee0a89961
4
+ data.tar.gz: d303c9f91d2307a044640961df719ab83e142c9dc0ba630b6d525eeaa8ae4cc1
5
5
  SHA512:
6
- metadata.gz: 7834e2848b6ef7f7cfae896e020a75cacadb92025288579b7b2b0676c22eb08a78a3084fd7921f8b294377694cd5e3aedca90d292007fcf64c38b41224d3d2f8
7
- data.tar.gz: 38622d24d06bbcc9620f1bcacdb60010ce641f9103a950cdb90e95644040622eb776a1ec30608b20b3fb6008e53b9463897b2f4bbdcfc5ecae45656ea7aad9f6
6
+ metadata.gz: 4d829f2ce39edeeec26e3812d5394cac23e8341ef06b4b83767fc9263cfc98735fd9eee5b3beed39fe049f769fd51903dc4f2b848bf12bbed3be007687068a3c
7
+ data.tar.gz: 2f2efe3b2cf85c1ef8d5424a8bb4d327c8b373089829b5e297b894e4288cd8f221af31339bf99740a1d1d3128ed8ac800f70a45c3b88910cb0ec0b358d94bc30
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.5.0 (2023-05-31)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ 1.4.0 (2023-05-15)
10
+ ------------------
11
+
12
+ * Feature - With this release, the users can list the active sessions connected to their Dev Environment on AWS CodeCatalyst
13
+
4
14
  1.3.0 (2023-04-24)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.3.0
1
+ 1.5.0
@@ -275,6 +275,11 @@ module Aws::CodeCatalyst
275
275
  # in the future.
276
276
  #
277
277
  #
278
+ # @option options [String] :sdk_ua_app_id
279
+ # A unique and opaque application ID that is appended to the
280
+ # User-Agent header as app/<sdk_ua_app_id>. It should have a
281
+ # maximum length of 50.
282
+ #
278
283
  # @option options [String] :secret_access_key
279
284
  #
280
285
  # @option options [String] :session_token
@@ -992,6 +997,64 @@ module Aws::CodeCatalyst
992
997
  req.send_request(options)
993
998
  end
994
999
 
1000
+ # Retrieves a list of active sessions for a Dev Environment in a
1001
+ # project.
1002
+ #
1003
+ # @option params [required, String] :space_name
1004
+ # The name of the space.
1005
+ #
1006
+ # @option params [required, String] :project_name
1007
+ # The name of the project in the space.
1008
+ #
1009
+ # @option params [required, String] :dev_environment_id
1010
+ # The system-generated unique ID of the Dev Environment.
1011
+ #
1012
+ # @option params [String] :next_token
1013
+ # A token returned from a call to this API to indicate the next batch of
1014
+ # results to return, if any.
1015
+ #
1016
+ # @option params [Integer] :max_results
1017
+ # The maximum number of results to show in a single call to this API. If
1018
+ # the number of results is larger than the number you specified, the
1019
+ # response will include a `NextToken` element, which you can use to
1020
+ # obtain additional results.
1021
+ #
1022
+ # @return [Types::ListDevEnvironmentSessionsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1023
+ #
1024
+ # * {Types::ListDevEnvironmentSessionsResponse#items #items} => Array&lt;Types::DevEnvironmentSessionSummary&gt;
1025
+ # * {Types::ListDevEnvironmentSessionsResponse#next_token #next_token} => String
1026
+ #
1027
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1028
+ #
1029
+ # @example Request syntax with placeholder values
1030
+ #
1031
+ # resp = client.list_dev_environment_sessions({
1032
+ # space_name: "NameString", # required
1033
+ # project_name: "NameString", # required
1034
+ # dev_environment_id: "Uuid", # required
1035
+ # next_token: "ListDevEnvironmentSessionsRequestNextTokenString",
1036
+ # max_results: 1,
1037
+ # })
1038
+ #
1039
+ # @example Response structure
1040
+ #
1041
+ # resp.items #=> Array
1042
+ # resp.items[0].space_name #=> String
1043
+ # resp.items[0].project_name #=> String
1044
+ # resp.items[0].dev_environment_id #=> String
1045
+ # resp.items[0].started_time #=> Time
1046
+ # resp.items[0].id #=> String
1047
+ # resp.next_token #=> String
1048
+ #
1049
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codecatalyst-2022-09-28/ListDevEnvironmentSessions AWS API Documentation
1050
+ #
1051
+ # @overload list_dev_environment_sessions(params = {})
1052
+ # @param [Hash] params ({})
1053
+ def list_dev_environment_sessions(params = {}, options = {})
1054
+ req = build_request(:list_dev_environment_sessions, params)
1055
+ req.send_request(options)
1056
+ end
1057
+
995
1058
  # Retrieves a list of Dev Environments in a project.
996
1059
  #
997
1060
  # @option params [required, String] :space_name
@@ -1701,7 +1764,7 @@ module Aws::CodeCatalyst
1701
1764
  params: params,
1702
1765
  config: config)
1703
1766
  context[:gem_name] = 'aws-sdk-codecatalyst'
1704
- context[:gem_version] = '1.3.0'
1767
+ context[:gem_version] = '1.5.0'
1705
1768
  Seahorse::Client::Request.new(handlers, context)
1706
1769
  end
1707
1770
 
@@ -40,7 +40,10 @@ module Aws::CodeCatalyst
40
40
  DevEnvironmentRepositorySummaries = Shapes::ListShape.new(name: 'DevEnvironmentRepositorySummaries')
41
41
  DevEnvironmentRepositorySummary = Shapes::StructureShape.new(name: 'DevEnvironmentRepositorySummary')
42
42
  DevEnvironmentSessionConfiguration = Shapes::StructureShape.new(name: 'DevEnvironmentSessionConfiguration')
43
+ DevEnvironmentSessionSummary = Shapes::StructureShape.new(name: 'DevEnvironmentSessionSummary')
44
+ DevEnvironmentSessionSummaryIdString = Shapes::StringShape.new(name: 'DevEnvironmentSessionSummaryIdString')
43
45
  DevEnvironmentSessionType = Shapes::StringShape.new(name: 'DevEnvironmentSessionType')
46
+ DevEnvironmentSessionsSummaryList = Shapes::ListShape.new(name: 'DevEnvironmentSessionsSummaryList')
44
47
  DevEnvironmentStatus = Shapes::StringShape.new(name: 'DevEnvironmentStatus')
45
48
  DevEnvironmentSummary = Shapes::StructureShape.new(name: 'DevEnvironmentSummary')
46
49
  DevEnvironmentSummaryAliasString = Shapes::StringShape.new(name: 'DevEnvironmentSummaryAliasString')
@@ -87,6 +90,10 @@ module Aws::CodeCatalyst
87
90
  ListAccessTokensRequestMaxResultsInteger = Shapes::IntegerShape.new(name: 'ListAccessTokensRequestMaxResultsInteger')
88
91
  ListAccessTokensRequestNextTokenString = Shapes::StringShape.new(name: 'ListAccessTokensRequestNextTokenString')
89
92
  ListAccessTokensResponse = Shapes::StructureShape.new(name: 'ListAccessTokensResponse')
93
+ ListDevEnvironmentSessionsRequest = Shapes::StructureShape.new(name: 'ListDevEnvironmentSessionsRequest')
94
+ ListDevEnvironmentSessionsRequestMaxResultsInteger = Shapes::IntegerShape.new(name: 'ListDevEnvironmentSessionsRequestMaxResultsInteger')
95
+ ListDevEnvironmentSessionsRequestNextTokenString = Shapes::StringShape.new(name: 'ListDevEnvironmentSessionsRequestNextTokenString')
96
+ ListDevEnvironmentSessionsResponse = Shapes::StructureShape.new(name: 'ListDevEnvironmentSessionsResponse')
90
97
  ListDevEnvironmentsRequest = Shapes::StructureShape.new(name: 'ListDevEnvironmentsRequest')
91
98
  ListDevEnvironmentsRequestMaxResultsInteger = Shapes::IntegerShape.new(name: 'ListDevEnvironmentsRequestMaxResultsInteger')
92
99
  ListDevEnvironmentsRequestNextTokenString = Shapes::StringShape.new(name: 'ListDevEnvironmentsRequestNextTokenString')
@@ -260,6 +267,15 @@ module Aws::CodeCatalyst
260
267
  DevEnvironmentSessionConfiguration.add_member(:execute_command_session_configuration, Shapes::ShapeRef.new(shape: ExecuteCommandSessionConfiguration, location_name: "executeCommandSessionConfiguration"))
261
268
  DevEnvironmentSessionConfiguration.struct_class = Types::DevEnvironmentSessionConfiguration
262
269
 
270
+ DevEnvironmentSessionSummary.add_member(:space_name, Shapes::ShapeRef.new(shape: NameString, required: true, location_name: "spaceName"))
271
+ DevEnvironmentSessionSummary.add_member(:project_name, Shapes::ShapeRef.new(shape: NameString, required: true, location_name: "projectName"))
272
+ DevEnvironmentSessionSummary.add_member(:dev_environment_id, Shapes::ShapeRef.new(shape: Uuid, required: true, location_name: "devEnvironmentId"))
273
+ DevEnvironmentSessionSummary.add_member(:started_time, Shapes::ShapeRef.new(shape: SyntheticTimestamp_date_time, required: true, location_name: "startedTime"))
274
+ DevEnvironmentSessionSummary.add_member(:id, Shapes::ShapeRef.new(shape: DevEnvironmentSessionSummaryIdString, required: true, location_name: "id"))
275
+ DevEnvironmentSessionSummary.struct_class = Types::DevEnvironmentSessionSummary
276
+
277
+ DevEnvironmentSessionsSummaryList.member = Shapes::ShapeRef.new(shape: DevEnvironmentSessionSummary)
278
+
263
279
  DevEnvironmentSummary.add_member(:space_name, Shapes::ShapeRef.new(shape: NameString, location_name: "spaceName"))
264
280
  DevEnvironmentSummary.add_member(:project_name, Shapes::ShapeRef.new(shape: NameString, location_name: "projectName"))
265
281
  DevEnvironmentSummary.add_member(:id, Shapes::ShapeRef.new(shape: Uuid, required: true, location_name: "id"))
@@ -402,6 +418,17 @@ module Aws::CodeCatalyst
402
418
  ListAccessTokensResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "nextToken"))
403
419
  ListAccessTokensResponse.struct_class = Types::ListAccessTokensResponse
404
420
 
421
+ ListDevEnvironmentSessionsRequest.add_member(:space_name, Shapes::ShapeRef.new(shape: NameString, required: true, location: "uri", location_name: "spaceName"))
422
+ ListDevEnvironmentSessionsRequest.add_member(:project_name, Shapes::ShapeRef.new(shape: NameString, required: true, location: "uri", location_name: "projectName"))
423
+ ListDevEnvironmentSessionsRequest.add_member(:dev_environment_id, Shapes::ShapeRef.new(shape: Uuid, required: true, location: "uri", location_name: "devEnvironmentId"))
424
+ ListDevEnvironmentSessionsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: ListDevEnvironmentSessionsRequestNextTokenString, location_name: "nextToken"))
425
+ ListDevEnvironmentSessionsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: ListDevEnvironmentSessionsRequestMaxResultsInteger, location_name: "maxResults"))
426
+ ListDevEnvironmentSessionsRequest.struct_class = Types::ListDevEnvironmentSessionsRequest
427
+
428
+ ListDevEnvironmentSessionsResponse.add_member(:items, Shapes::ShapeRef.new(shape: DevEnvironmentSessionsSummaryList, required: true, location_name: "items"))
429
+ ListDevEnvironmentSessionsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "nextToken"))
430
+ ListDevEnvironmentSessionsResponse.struct_class = Types::ListDevEnvironmentSessionsResponse
431
+
405
432
  ListDevEnvironmentsRequest.add_member(:space_name, Shapes::ShapeRef.new(shape: NameString, required: true, location: "uri", location_name: "spaceName"))
406
433
  ListDevEnvironmentsRequest.add_member(:project_name, Shapes::ShapeRef.new(shape: NameString, required: true, location: "uri", location_name: "projectName"))
407
434
  ListDevEnvironmentsRequest.add_member(:filters, Shapes::ShapeRef.new(shape: Filters, location_name: "filters"))
@@ -817,6 +844,26 @@ module Aws::CodeCatalyst
817
844
  )
818
845
  end)
819
846
 
847
+ api.add_operation(:list_dev_environment_sessions, Seahorse::Model::Operation.new.tap do |o|
848
+ o.name = "ListDevEnvironmentSessions"
849
+ o.http_method = "POST"
850
+ o.http_request_uri = "/v1/spaces/{spaceName}/projects/{projectName}/devEnvironments/{devEnvironmentId}/sessions"
851
+ o.input = Shapes::ShapeRef.new(shape: ListDevEnvironmentSessionsRequest)
852
+ o.output = Shapes::ShapeRef.new(shape: ListDevEnvironmentSessionsResponse)
853
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
854
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
855
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
856
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
857
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
858
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
859
+ o[:pager] = Aws::Pager.new(
860
+ limit_key: "max_results",
861
+ tokens: {
862
+ "next_token" => "next_token"
863
+ }
864
+ )
865
+ end)
866
+
820
867
  api.add_operation(:list_dev_environments, Seahorse::Model::Operation.new.tap do |o|
821
868
  o.name = "ListDevEnvironments"
822
869
  o.http_method = "POST"
@@ -180,6 +180,19 @@ module Aws::CodeCatalyst
180
180
  end
181
181
  end
182
182
 
183
+ class ListDevEnvironmentSessions
184
+ def self.build(context)
185
+ unless context.config.regional_endpoint
186
+ endpoint = context.config.endpoint.to_s
187
+ end
188
+ Aws::CodeCatalyst::EndpointParameters.new(
189
+ use_fips: context.config.use_fips_endpoint,
190
+ region: context.config.region,
191
+ endpoint: endpoint,
192
+ )
193
+ end
194
+ end
195
+
183
196
  class ListDevEnvironments
184
197
  def self.build(context)
185
198
  unless context.config.regional_endpoint
@@ -82,6 +82,8 @@ module Aws::CodeCatalyst
82
82
  Aws::CodeCatalyst::Endpoints::GetUserDetails.build(context)
83
83
  when :list_access_tokens
84
84
  Aws::CodeCatalyst::Endpoints::ListAccessTokens.build(context)
85
+ when :list_dev_environment_sessions
86
+ Aws::CodeCatalyst::Endpoints::ListDevEnvironmentSessions.build(context)
85
87
  when :list_dev_environments
86
88
  Aws::CodeCatalyst::Endpoints::ListDevEnvironments.build(context)
87
89
  when :list_event_logs
@@ -463,6 +463,45 @@ module Aws::CodeCatalyst
463
463
  include Aws::Structure
464
464
  end
465
465
 
466
+ # Information about active sessions for a Dev Environment.
467
+ #
468
+ # @!attribute [rw] space_name
469
+ # The name of the space.
470
+ # @return [String]
471
+ #
472
+ # @!attribute [rw] project_name
473
+ # The name of the project in the space.
474
+ # @return [String]
475
+ #
476
+ # @!attribute [rw] dev_environment_id
477
+ # The system-generated unique ID of the Dev Environment.
478
+ # @return [String]
479
+ #
480
+ # @!attribute [rw] started_time
481
+ # The date and time the session started, in coordinated universal time
482
+ # (UTC) timestamp format as specified in [RFC 3339][1]
483
+ #
484
+ #
485
+ #
486
+ # [1]: https://www.rfc-editor.org/rfc/rfc3339#section-5.6
487
+ # @return [Time]
488
+ #
489
+ # @!attribute [rw] id
490
+ # The system-generated unique ID of the Dev Environment session.
491
+ # @return [String]
492
+ #
493
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codecatalyst-2022-09-28/DevEnvironmentSessionSummary AWS API Documentation
494
+ #
495
+ class DevEnvironmentSessionSummary < Struct.new(
496
+ :space_name,
497
+ :project_name,
498
+ :dev_environment_id,
499
+ :started_time,
500
+ :id)
501
+ SENSITIVE = []
502
+ include Aws::Structure
503
+ end
504
+
466
505
  # Information about a Dev Environment.
467
506
  #
468
507
  # @!attribute [rw] space_name
@@ -1105,6 +1144,60 @@ module Aws::CodeCatalyst
1105
1144
  include Aws::Structure
1106
1145
  end
1107
1146
 
1147
+ # @!attribute [rw] space_name
1148
+ # The name of the space.
1149
+ # @return [String]
1150
+ #
1151
+ # @!attribute [rw] project_name
1152
+ # The name of the project in the space.
1153
+ # @return [String]
1154
+ #
1155
+ # @!attribute [rw] dev_environment_id
1156
+ # The system-generated unique ID of the Dev Environment.
1157
+ # @return [String]
1158
+ #
1159
+ # @!attribute [rw] next_token
1160
+ # A token returned from a call to this API to indicate the next batch
1161
+ # of results to return, if any.
1162
+ # @return [String]
1163
+ #
1164
+ # @!attribute [rw] max_results
1165
+ # The maximum number of results to show in a single call to this API.
1166
+ # If the number of results is larger than the number you specified,
1167
+ # the response will include a `NextToken` element, which you can use
1168
+ # to obtain additional results.
1169
+ # @return [Integer]
1170
+ #
1171
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codecatalyst-2022-09-28/ListDevEnvironmentSessionsRequest AWS API Documentation
1172
+ #
1173
+ class ListDevEnvironmentSessionsRequest < Struct.new(
1174
+ :space_name,
1175
+ :project_name,
1176
+ :dev_environment_id,
1177
+ :next_token,
1178
+ :max_results)
1179
+ SENSITIVE = []
1180
+ include Aws::Structure
1181
+ end
1182
+
1183
+ # @!attribute [rw] items
1184
+ # Information about each session retrieved in the list.
1185
+ # @return [Array<Types::DevEnvironmentSessionSummary>]
1186
+ #
1187
+ # @!attribute [rw] next_token
1188
+ # A token returned from a call to this API to indicate the next batch
1189
+ # of results to return, if any.
1190
+ # @return [String]
1191
+ #
1192
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codecatalyst-2022-09-28/ListDevEnvironmentSessionsResponse AWS API Documentation
1193
+ #
1194
+ class ListDevEnvironmentSessionsResponse < Struct.new(
1195
+ :items,
1196
+ :next_token)
1197
+ SENSITIVE = []
1198
+ include Aws::Structure
1199
+ end
1200
+
1108
1201
  # @!attribute [rw] space_name
1109
1202
  # The name of the space.
1110
1203
  # @return [String]
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-codecatalyst/customizations'
52
52
  # @!group service
53
53
  module Aws::CodeCatalyst
54
54
 
55
- GEM_VERSION = '1.3.0'
55
+ GEM_VERSION = '1.5.0'
56
56
 
57
57
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-codecatalyst
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-04-24 00:00:00.000000000 Z
11
+ date: 2023-05-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.165.0
22
+ version: 3.174.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.165.0
32
+ version: 3.174.0
33
33
  description: Official AWS Ruby gem for Amazon CodeCatalyst. This gem is part of the
34
34
  AWS SDK for Ruby.
35
35
  email: