aws-sdk-codecatalyst 1.3.0 → 1.4.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 +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-codecatalyst/client.rb +59 -1
- data/lib/aws-sdk-codecatalyst/client_api.rb +47 -0
- data/lib/aws-sdk-codecatalyst/endpoints.rb +13 -0
- data/lib/aws-sdk-codecatalyst/plugins/endpoints.rb +2 -0
- data/lib/aws-sdk-codecatalyst/types.rb +93 -0
- data/lib/aws-sdk-codecatalyst.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aa487139a170ae9b7157345ec7af4e46c3aabd98256bdbbec475e5e722de4751
|
4
|
+
data.tar.gz: 061a01b1faf6031fc0e944c3a0c4538045ce7f5340110662690b86c5e8737564
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5eef88b1bbab208924a0b9a23c419a3b4a6a1669fd857632b3183141f941f279fb3ac402f578c8ed3867ea48f3fe362e79e54009dca21700b593248924d17d8c
|
7
|
+
data.tar.gz: ccbd82fba8e789ed379d0a674a56c4e70bf4d7e41e1fbb01d2e29e98b563e24f348a1b1690143dea1985b55ba4344f69486c58b99ef31628d971c017a090d42e
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.4.0 (2023-05-15)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - With this release, the users can list the active sessions connected to their Dev Environment on AWS CodeCatalyst
|
8
|
+
|
4
9
|
1.3.0 (2023-04-24)
|
5
10
|
------------------
|
6
11
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.4.0
|
@@ -992,6 +992,64 @@ module Aws::CodeCatalyst
|
|
992
992
|
req.send_request(options)
|
993
993
|
end
|
994
994
|
|
995
|
+
# Retrieves a list of active sessions for a Dev Environment in a
|
996
|
+
# project.
|
997
|
+
#
|
998
|
+
# @option params [required, String] :space_name
|
999
|
+
# The name of the space.
|
1000
|
+
#
|
1001
|
+
# @option params [required, String] :project_name
|
1002
|
+
# The name of the project in the space.
|
1003
|
+
#
|
1004
|
+
# @option params [required, String] :dev_environment_id
|
1005
|
+
# The system-generated unique ID of the Dev Environment.
|
1006
|
+
#
|
1007
|
+
# @option params [String] :next_token
|
1008
|
+
# A token returned from a call to this API to indicate the next batch of
|
1009
|
+
# results to return, if any.
|
1010
|
+
#
|
1011
|
+
# @option params [Integer] :max_results
|
1012
|
+
# The maximum number of results to show in a single call to this API. If
|
1013
|
+
# the number of results is larger than the number you specified, the
|
1014
|
+
# response will include a `NextToken` element, which you can use to
|
1015
|
+
# obtain additional results.
|
1016
|
+
#
|
1017
|
+
# @return [Types::ListDevEnvironmentSessionsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1018
|
+
#
|
1019
|
+
# * {Types::ListDevEnvironmentSessionsResponse#items #items} => Array<Types::DevEnvironmentSessionSummary>
|
1020
|
+
# * {Types::ListDevEnvironmentSessionsResponse#next_token #next_token} => String
|
1021
|
+
#
|
1022
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
1023
|
+
#
|
1024
|
+
# @example Request syntax with placeholder values
|
1025
|
+
#
|
1026
|
+
# resp = client.list_dev_environment_sessions({
|
1027
|
+
# space_name: "NameString", # required
|
1028
|
+
# project_name: "NameString", # required
|
1029
|
+
# dev_environment_id: "Uuid", # required
|
1030
|
+
# next_token: "ListDevEnvironmentSessionsRequestNextTokenString",
|
1031
|
+
# max_results: 1,
|
1032
|
+
# })
|
1033
|
+
#
|
1034
|
+
# @example Response structure
|
1035
|
+
#
|
1036
|
+
# resp.items #=> Array
|
1037
|
+
# resp.items[0].space_name #=> String
|
1038
|
+
# resp.items[0].project_name #=> String
|
1039
|
+
# resp.items[0].dev_environment_id #=> String
|
1040
|
+
# resp.items[0].started_time #=> Time
|
1041
|
+
# resp.items[0].id #=> String
|
1042
|
+
# resp.next_token #=> String
|
1043
|
+
#
|
1044
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codecatalyst-2022-09-28/ListDevEnvironmentSessions AWS API Documentation
|
1045
|
+
#
|
1046
|
+
# @overload list_dev_environment_sessions(params = {})
|
1047
|
+
# @param [Hash] params ({})
|
1048
|
+
def list_dev_environment_sessions(params = {}, options = {})
|
1049
|
+
req = build_request(:list_dev_environment_sessions, params)
|
1050
|
+
req.send_request(options)
|
1051
|
+
end
|
1052
|
+
|
995
1053
|
# Retrieves a list of Dev Environments in a project.
|
996
1054
|
#
|
997
1055
|
# @option params [required, String] :space_name
|
@@ -1701,7 +1759,7 @@ module Aws::CodeCatalyst
|
|
1701
1759
|
params: params,
|
1702
1760
|
config: config)
|
1703
1761
|
context[:gem_name] = 'aws-sdk-codecatalyst'
|
1704
|
-
context[:gem_version] = '1.
|
1762
|
+
context[:gem_version] = '1.4.0'
|
1705
1763
|
Seahorse::Client::Request.new(handlers, context)
|
1706
1764
|
end
|
1707
1765
|
|
@@ -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]
|
data/lib/aws-sdk-codecatalyst.rb
CHANGED
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.
|
4
|
+
version: 1.4.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-
|
11
|
+
date: 2023-05-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|