aws-sdk-codecatalyst 1.1.0 → 1.2.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: c5843c12be5f57cfe77a99d3ec59ddeedfdc55a5b609de997df395831d050f20
4
- data.tar.gz: 6b12500d736b74d7a1f351d750cf3b6989c3cb4ef37563f40c1391d6f386934a
3
+ metadata.gz: c8459d893e24bdd14d32b0e65e4817589d2a800fe0da5720c432149b096a9a2d
4
+ data.tar.gz: 47c258128dfb006484c2f414880e5fc4d2606820a73d1c4ecc7fd1affd65d4be
5
5
  SHA512:
6
- metadata.gz: 93f1f757a0e2a58304efd7a12c5a210ff3e9101a1b704fdb38814be039578b4744c8f47f7605e9fbb972a55afc48e97dc7bc0dcb83c9daea8ed9370d430c37f8
7
- data.tar.gz: d65fab762f9f26aa33be8ce5c61e24cc65a83fe1e9757008e4c780e69d5e37de67c2873a07b0dd92bc53c2206d0ef6dfcc304e2f7ff5dff5c50112a7410521f2
6
+ metadata.gz: 4fcf5960dd232012b68c2d94cd9a27520b27f804b3ba01b172748bace95eba8a063e50627dd2041d64997922d0f8667c7ed2b1f0a8be14b12f4091763e2ce864
7
+ data.tar.gz: 4812dcfa075037c52e16c58cf40bf5ba770f3935f3da2095797a2708487b0bf33ad5887323cadae7640965dda6619ef74eeebb0d25c1302e24f063a20e6569bd
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.2.0 (2023-03-01)
5
+ ------------------
6
+
7
+ * Feature - Published Dev Environments StopDevEnvironmentSession API
8
+
4
9
  1.1.0 (2023-01-18)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.0
1
+ 1.2.0
@@ -396,6 +396,7 @@ module Aws::CodeCatalyst
396
396
  # * {Types::CreateAccessTokenResponse#secret #secret} => String
397
397
  # * {Types::CreateAccessTokenResponse#name #name} => String
398
398
  # * {Types::CreateAccessTokenResponse#expires_time #expires_time} => Time
399
+ # * {Types::CreateAccessTokenResponse#access_token_id #access_token_id} => String
399
400
  #
400
401
  # @example Request syntax with placeholder values
401
402
  #
@@ -409,6 +410,7 @@ module Aws::CodeCatalyst
409
410
  # resp.secret #=> String
410
411
  # resp.name #=> String
411
412
  # resp.expires_time #=> Time
413
+ # resp.access_token_id #=> String
412
414
  #
413
415
  # @see http://docs.aws.amazon.com/goto/WebAPI/codecatalyst-2022-09-28/CreateAccessToken AWS API Documentation
414
416
  #
@@ -421,9 +423,14 @@ module Aws::CodeCatalyst
421
423
 
422
424
  # Creates a Dev Environment in Amazon CodeCatalyst, a cloud-based
423
425
  # development Dev Environment that you can use to quickly work on the
424
- # code stored in the source repositories of your project. By default, a
425
- # Dev Environment is configured to have a 2 core processor, 4GB of RAM,
426
- # and 16GB of persistent storage.
426
+ # code stored in the source repositories of your project.
427
+ #
428
+ # <note markdown="1"> When created in the Amazon CodeCatalyst console, by default a Dev
429
+ # Environment is configured to have a 2 core processor, 4GB of RAM, and
430
+ # 16GB of persistent storage. None of these defaults apply to a Dev
431
+ # Environment created programmatically.
432
+ #
433
+ # </note>
427
434
  #
428
435
  # @option params [required, String] :space_name
429
436
  # The name of the space.
@@ -465,10 +472,12 @@ module Aws::CodeCatalyst
465
472
  #
466
473
  # @option params [required, Types::PersistentStorageConfiguration] :persistent_storage
467
474
  # Information about the amount of storage allocated to the Dev
468
- # Environment. By default, a Dev Environment is configured to have 16GB
469
- # of persistent storage.
475
+ # Environment.
470
476
  #
471
- # <note markdown="1"> Valid values for persistent storage are based on memory sizes in 16GB
477
+ # <note markdown="1"> By default, a Dev Environment is configured to have 16GB of persistent
478
+ # storage when created from the Amazon CodeCatalyst console, but there
479
+ # is no default when programmatically creating a Dev Environment. Valid
480
+ # values for persistent storage are based on memory sizes in 16GB
472
481
  # increments. Valid values are 16, 32, and 64.
473
482
  #
474
483
  # </note>
@@ -1513,6 +1522,54 @@ module Aws::CodeCatalyst
1513
1522
  req.send_request(options)
1514
1523
  end
1515
1524
 
1525
+ # Stops a session for a specified Dev Environment.
1526
+ #
1527
+ # @option params [required, String] :space_name
1528
+ # The name of the space.
1529
+ #
1530
+ # @option params [required, String] :project_name
1531
+ # The name of the project in the space.
1532
+ #
1533
+ # @option params [required, String] :id
1534
+ # The system-generated unique ID of the Dev Environment. To obtain this
1535
+ # ID, use ListDevEnvironments.
1536
+ #
1537
+ # @option params [required, String] :session_id
1538
+ # The system-generated unique ID of the Dev Environment session. This ID
1539
+ # is returned by StartDevEnvironmentSession.
1540
+ #
1541
+ # @return [Types::StopDevEnvironmentSessionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1542
+ #
1543
+ # * {Types::StopDevEnvironmentSessionResponse#space_name #space_name} => String
1544
+ # * {Types::StopDevEnvironmentSessionResponse#project_name #project_name} => String
1545
+ # * {Types::StopDevEnvironmentSessionResponse#id #id} => String
1546
+ # * {Types::StopDevEnvironmentSessionResponse#session_id #session_id} => String
1547
+ #
1548
+ # @example Request syntax with placeholder values
1549
+ #
1550
+ # resp = client.stop_dev_environment_session({
1551
+ # space_name: "NameString", # required
1552
+ # project_name: "NameString", # required
1553
+ # id: "Uuid", # required
1554
+ # session_id: "StopDevEnvironmentSessionRequestSessionIdString", # required
1555
+ # })
1556
+ #
1557
+ # @example Response structure
1558
+ #
1559
+ # resp.space_name #=> String
1560
+ # resp.project_name #=> String
1561
+ # resp.id #=> String
1562
+ # resp.session_id #=> String
1563
+ #
1564
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codecatalyst-2022-09-28/StopDevEnvironmentSession AWS API Documentation
1565
+ #
1566
+ # @overload stop_dev_environment_session(params = {})
1567
+ # @param [Hash] params ({})
1568
+ def stop_dev_environment_session(params = {}, options = {})
1569
+ req = build_request(:stop_dev_environment_session, params)
1570
+ req.send_request(options)
1571
+ end
1572
+
1516
1573
  # Changes one or more values for a Dev Environment. Updating certain
1517
1574
  # values of the Dev Environment will cause a restart.
1518
1575
  #
@@ -1643,7 +1700,7 @@ module Aws::CodeCatalyst
1643
1700
  params: params,
1644
1701
  config: config)
1645
1702
  context[:gem_name] = 'aws-sdk-codecatalyst'
1646
- context[:gem_version] = '1.1.0'
1703
+ context[:gem_version] = '1.2.0'
1647
1704
  Seahorse::Client::Request.new(handlers, context)
1648
1705
  end
1649
1706
 
@@ -148,6 +148,10 @@ module Aws::CodeCatalyst
148
148
  StatusReason = Shapes::StringShape.new(name: 'StatusReason')
149
149
  StopDevEnvironmentRequest = Shapes::StructureShape.new(name: 'StopDevEnvironmentRequest')
150
150
  StopDevEnvironmentResponse = Shapes::StructureShape.new(name: 'StopDevEnvironmentResponse')
151
+ StopDevEnvironmentSessionRequest = Shapes::StructureShape.new(name: 'StopDevEnvironmentSessionRequest')
152
+ StopDevEnvironmentSessionRequestSessionIdString = Shapes::StringShape.new(name: 'StopDevEnvironmentSessionRequestSessionIdString')
153
+ StopDevEnvironmentSessionResponse = Shapes::StructureShape.new(name: 'StopDevEnvironmentSessionResponse')
154
+ StopDevEnvironmentSessionResponseSessionIdString = Shapes::StringShape.new(name: 'StopDevEnvironmentSessionResponseSessionIdString')
151
155
  String = Shapes::StringShape.new(name: 'String')
152
156
  StringList = Shapes::ListShape.new(name: 'StringList')
153
157
  SyntheticTimestamp_date_time = Shapes::TimestampShape.new(name: 'SyntheticTimestamp_date_time', timestampFormat: "iso8601")
@@ -182,8 +186,9 @@ module Aws::CodeCatalyst
182
186
  CreateAccessTokenRequest.struct_class = Types::CreateAccessTokenRequest
183
187
 
184
188
  CreateAccessTokenResponse.add_member(:secret, Shapes::ShapeRef.new(shape: AccessTokenSecret, required: true, location_name: "secret"))
185
- CreateAccessTokenResponse.add_member(:name, Shapes::ShapeRef.new(shape: AccessTokenName, location_name: "name"))
186
- CreateAccessTokenResponse.add_member(:expires_time, Shapes::ShapeRef.new(shape: SyntheticTimestamp_date_time, location_name: "expiresTime"))
189
+ CreateAccessTokenResponse.add_member(:name, Shapes::ShapeRef.new(shape: AccessTokenName, required: true, location_name: "name"))
190
+ CreateAccessTokenResponse.add_member(:expires_time, Shapes::ShapeRef.new(shape: SyntheticTimestamp_date_time, required: true, location_name: "expiresTime"))
191
+ CreateAccessTokenResponse.add_member(:access_token_id, Shapes::ShapeRef.new(shape: AccessTokenId, required: true, location_name: "accessTokenId"))
187
192
  CreateAccessTokenResponse.struct_class = Types::CreateAccessTokenResponse
188
193
 
189
194
  CreateDevEnvironmentRequest.add_member(:space_name, Shapes::ShapeRef.new(shape: NameString, required: true, location: "uri", location_name: "spaceName"))
@@ -465,7 +470,7 @@ module Aws::CodeCatalyst
465
470
  ListSourceRepositoryBranchesRequest.struct_class = Types::ListSourceRepositoryBranchesRequest
466
471
 
467
472
  ListSourceRepositoryBranchesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "nextToken"))
468
- ListSourceRepositoryBranchesResponse.add_member(:items, Shapes::ShapeRef.new(shape: ListSourceRepositoryBranchesItems, location_name: "items"))
473
+ ListSourceRepositoryBranchesResponse.add_member(:items, Shapes::ShapeRef.new(shape: ListSourceRepositoryBranchesItems, required: true, location_name: "items"))
469
474
  ListSourceRepositoryBranchesResponse.struct_class = Types::ListSourceRepositoryBranchesResponse
470
475
 
471
476
  ListSpacesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: ListSpacesRequestNextTokenString, location_name: "nextToken"))
@@ -557,6 +562,18 @@ module Aws::CodeCatalyst
557
562
  StopDevEnvironmentResponse.add_member(:status, Shapes::ShapeRef.new(shape: DevEnvironmentStatus, required: true, location_name: "status"))
558
563
  StopDevEnvironmentResponse.struct_class = Types::StopDevEnvironmentResponse
559
564
 
565
+ StopDevEnvironmentSessionRequest.add_member(:space_name, Shapes::ShapeRef.new(shape: NameString, required: true, location: "uri", location_name: "spaceName"))
566
+ StopDevEnvironmentSessionRequest.add_member(:project_name, Shapes::ShapeRef.new(shape: NameString, required: true, location: "uri", location_name: "projectName"))
567
+ StopDevEnvironmentSessionRequest.add_member(:id, Shapes::ShapeRef.new(shape: Uuid, required: true, location: "uri", location_name: "id"))
568
+ StopDevEnvironmentSessionRequest.add_member(:session_id, Shapes::ShapeRef.new(shape: StopDevEnvironmentSessionRequestSessionIdString, required: true, location: "uri", location_name: "sessionId"))
569
+ StopDevEnvironmentSessionRequest.struct_class = Types::StopDevEnvironmentSessionRequest
570
+
571
+ StopDevEnvironmentSessionResponse.add_member(:space_name, Shapes::ShapeRef.new(shape: NameString, required: true, location_name: "spaceName"))
572
+ StopDevEnvironmentSessionResponse.add_member(:project_name, Shapes::ShapeRef.new(shape: NameString, required: true, location_name: "projectName"))
573
+ StopDevEnvironmentSessionResponse.add_member(:id, Shapes::ShapeRef.new(shape: Uuid, required: true, location_name: "id"))
574
+ StopDevEnvironmentSessionResponse.add_member(:session_id, Shapes::ShapeRef.new(shape: StopDevEnvironmentSessionResponseSessionIdString, required: true, location_name: "sessionId"))
575
+ StopDevEnvironmentSessionResponse.struct_class = Types::StopDevEnvironmentSessionResponse
576
+
560
577
  StringList.member = Shapes::ShapeRef.new(shape: String)
561
578
 
562
579
  ThrottlingException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
@@ -961,6 +978,20 @@ module Aws::CodeCatalyst
961
978
  o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
962
979
  end)
963
980
 
981
+ api.add_operation(:stop_dev_environment_session, Seahorse::Model::Operation.new.tap do |o|
982
+ o.name = "StopDevEnvironmentSession"
983
+ o.http_method = "DELETE"
984
+ o.http_request_uri = "/v1/spaces/{spaceName}/projects/{projectName}/devEnvironments/{id}/session/{sessionId}"
985
+ o.input = Shapes::ShapeRef.new(shape: StopDevEnvironmentSessionRequest)
986
+ o.output = Shapes::ShapeRef.new(shape: StopDevEnvironmentSessionResponse)
987
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
988
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
989
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
990
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
991
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
992
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
993
+ end)
994
+
964
995
  api.add_operation(:update_dev_environment, Seahorse::Model::Operation.new.tap do |o|
965
996
  o.name = "UpdateDevEnvironment"
966
997
  o.http_method = "PATCH"
@@ -297,6 +297,19 @@ module Aws::CodeCatalyst
297
297
  end
298
298
  end
299
299
 
300
+ class StopDevEnvironmentSession
301
+ def self.build(context)
302
+ unless context.config.regional_endpoint
303
+ endpoint = context.config.endpoint.to_s
304
+ end
305
+ Aws::CodeCatalyst::EndpointParameters.new(
306
+ use_fips: context.config.use_fips_endpoint,
307
+ region: context.config.region,
308
+ endpoint: endpoint,
309
+ )
310
+ end
311
+ end
312
+
300
313
  class UpdateDevEnvironment
301
314
  def self.build(context)
302
315
  unless context.config.regional_endpoint
@@ -100,6 +100,8 @@ module Aws::CodeCatalyst
100
100
  Aws::CodeCatalyst::Endpoints::StartDevEnvironmentSession.build(context)
101
101
  when :stop_dev_environment
102
102
  Aws::CodeCatalyst::Endpoints::StopDevEnvironment.build(context)
103
+ when :stop_dev_environment_session
104
+ Aws::CodeCatalyst::Endpoints::StopDevEnvironmentSession.build(context)
103
105
  when :update_dev_environment
104
106
  Aws::CodeCatalyst::Endpoints::UpdateDevEnvironment.build(context)
105
107
  when :verify_session
@@ -111,12 +111,17 @@ module Aws::CodeCatalyst
111
111
  # [1]: https://www.rfc-editor.org/rfc/rfc3339#section-5.6
112
112
  # @return [Time]
113
113
  #
114
+ # @!attribute [rw] access_token_id
115
+ # The system-generated unique ID of the access token.
116
+ # @return [String]
117
+ #
114
118
  # @see http://docs.aws.amazon.com/goto/WebAPI/codecatalyst-2022-09-28/CreateAccessTokenResponse AWS API Documentation
115
119
  #
116
120
  class CreateAccessTokenResponse < Struct.new(
117
121
  :secret,
118
122
  :name,
119
- :expires_time)
123
+ :expires_time,
124
+ :access_token_id)
120
125
  SENSITIVE = [:secret]
121
126
  include Aws::Structure
122
127
  end
@@ -169,11 +174,13 @@ module Aws::CodeCatalyst
169
174
  #
170
175
  # @!attribute [rw] persistent_storage
171
176
  # Information about the amount of storage allocated to the Dev
172
- # Environment. By default, a Dev Environment is configured to have
173
- # 16GB of persistent storage.
177
+ # Environment.
174
178
  #
175
- # <note markdown="1"> Valid values for persistent storage are based on memory sizes in
176
- # 16GB increments. Valid values are 16, 32, and 64.
179
+ # <note markdown="1"> By default, a Dev Environment is configured to have 16GB of
180
+ # persistent storage when created from the Amazon CodeCatalyst
181
+ # console, but there is no default when programmatically creating a
182
+ # Dev Environment. Valid values for persistent storage are based on
183
+ # memory sizes in 16GB increments. Valid values are 16, 32, and 64.
177
184
  #
178
185
  # </note>
179
186
  # @return [Types::PersistentStorageConfiguration]
@@ -1038,10 +1045,15 @@ module Aws::CodeCatalyst
1038
1045
  #
1039
1046
  # @!attribute [rw] runtime
1040
1047
  # A link to the IDE runtime image.
1048
+ #
1049
+ # <note markdown="1"> This parameter is not required for `VSCode`.
1050
+ #
1051
+ # </note>
1041
1052
  # @return [String]
1042
1053
  #
1043
1054
  # @!attribute [rw] name
1044
- # The name of the IDE.
1055
+ # The name of the IDE. Valid values include `Cloud9`, `IntelliJ`,
1056
+ # `PyCharm`, `GoLand`, and `VSCode`.
1045
1057
  # @return [String]
1046
1058
  #
1047
1059
  # @see http://docs.aws.amazon.com/goto/WebAPI/codecatalyst-2022-09-28/IdeConfiguration AWS API Documentation
@@ -1645,8 +1657,7 @@ module Aws::CodeCatalyst
1645
1657
  # Information about an space.
1646
1658
  #
1647
1659
  # @!attribute [rw] name
1648
- # *We need to know what this is and the basic usage information so
1649
- # that third-party developers know how to use this data type.*
1660
+ # The name of the space.
1650
1661
  # @return [String]
1651
1662
  #
1652
1663
  # @!attribute [rw] region_name
@@ -1847,6 +1858,62 @@ module Aws::CodeCatalyst
1847
1858
  include Aws::Structure
1848
1859
  end
1849
1860
 
1861
+ # @!attribute [rw] space_name
1862
+ # The name of the space.
1863
+ # @return [String]
1864
+ #
1865
+ # @!attribute [rw] project_name
1866
+ # The name of the project in the space.
1867
+ # @return [String]
1868
+ #
1869
+ # @!attribute [rw] id
1870
+ # The system-generated unique ID of the Dev Environment. To obtain
1871
+ # this ID, use ListDevEnvironments.
1872
+ # @return [String]
1873
+ #
1874
+ # @!attribute [rw] session_id
1875
+ # The system-generated unique ID of the Dev Environment session. This
1876
+ # ID is returned by StartDevEnvironmentSession.
1877
+ # @return [String]
1878
+ #
1879
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codecatalyst-2022-09-28/StopDevEnvironmentSessionRequest AWS API Documentation
1880
+ #
1881
+ class StopDevEnvironmentSessionRequest < Struct.new(
1882
+ :space_name,
1883
+ :project_name,
1884
+ :id,
1885
+ :session_id)
1886
+ SENSITIVE = []
1887
+ include Aws::Structure
1888
+ end
1889
+
1890
+ # @!attribute [rw] space_name
1891
+ # The name of the space.
1892
+ # @return [String]
1893
+ #
1894
+ # @!attribute [rw] project_name
1895
+ # The name of the project in the space.
1896
+ # @return [String]
1897
+ #
1898
+ # @!attribute [rw] id
1899
+ # The system-generated unique ID of the Dev Environment.
1900
+ # @return [String]
1901
+ #
1902
+ # @!attribute [rw] session_id
1903
+ # The system-generated unique ID of the Dev Environment session.
1904
+ # @return [String]
1905
+ #
1906
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codecatalyst-2022-09-28/StopDevEnvironmentSessionResponse AWS API Documentation
1907
+ #
1908
+ class StopDevEnvironmentSessionResponse < Struct.new(
1909
+ :space_name,
1910
+ :project_name,
1911
+ :id,
1912
+ :session_id)
1913
+ SENSITIVE = []
1914
+ include Aws::Structure
1915
+ end
1916
+
1850
1917
  # The request was denied due to request throttling.
1851
1918
  #
1852
1919
  # @!attribute [rw] message
@@ -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.1.0'
55
+ GEM_VERSION = '1.2.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.1.0
4
+ version: 1.2.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-01-18 00:00:00.000000000 Z
11
+ date: 2023-03-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core