aws-sdk-codecatalyst 1.0.0 → 1.2.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: 6baaab270a02a3e4dedabd4647ab7cb0af92ab0e33e2823a8129f669ebf27273
4
- data.tar.gz: 66cfb1bd12505a038b7bb33b07e2c166b11f9edaada95e059af7ec88915b6f6a
3
+ metadata.gz: c8459d893e24bdd14d32b0e65e4817589d2a800fe0da5720c432149b096a9a2d
4
+ data.tar.gz: 47c258128dfb006484c2f414880e5fc4d2606820a73d1c4ecc7fd1affd65d4be
5
5
  SHA512:
6
- metadata.gz: 31acdd3da5bb2cc4c75d797e773ef08e2fdf3f26393f95062974047f1b0838f17668f08063649853cc322352e9c8f1273a8c3be1521c9b22522f2ad37fc32435
7
- data.tar.gz: 94ebac19d7f57ca8cda49691ade9b8e1f2d69b1422a9120a9cbf0ee2c34188a0f94f5ff2d7afadf5bf752216c8b57529c6b18805e99d6cafa007520b80a3a733
6
+ metadata.gz: 4fcf5960dd232012b68c2d94cd9a27520b27f804b3ba01b172748bace95eba8a063e50627dd2041d64997922d0f8667c7ed2b1f0a8be14b12f4091763e2ce864
7
+ data.tar.gz: 4812dcfa075037c52e16c58cf40bf5ba770f3935f3da2095797a2708487b0bf33ad5887323cadae7640965dda6619ef74eeebb0d25c1302e24f063a20e6569bd
data/CHANGELOG.md CHANGED
@@ -1,6 +1,18 @@
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
+
9
+ 1.1.0 (2023-01-18)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
14
+ * Issue - Replace runtime endpoint resolution approach with generated ruby code.
15
+
4
16
  1.0.0 (2022-12-01)
5
17
  ------------------
6
18
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.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.0.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"
@@ -9,77 +9,33 @@
9
9
 
10
10
  module Aws::CodeCatalyst
11
11
  class EndpointProvider
12
- def initialize(rule_set = nil)
13
- @@rule_set ||= begin
14
- endpoint_rules = Aws::Json.load(Base64.decode64(RULES))
15
- Aws::Endpoints::RuleSet.new(
16
- version: endpoint_rules['version'],
17
- service_id: endpoint_rules['serviceId'],
18
- parameters: endpoint_rules['parameters'],
19
- rules: endpoint_rules['rules']
20
- )
12
+ def resolve_endpoint(parameters)
13
+ use_fips = parameters.use_fips
14
+ region = parameters.region
15
+ endpoint = parameters.endpoint
16
+ if Aws::Endpoints::Matchers.set?(endpoint)
17
+ return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
21
18
  end
22
- @provider = Aws::Endpoints::RulesProvider.new(rule_set || @@rule_set)
23
- end
19
+ if Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.set?(region)) && (partition_result = Aws::Endpoints::Matchers.aws_partition("us-west-2"))
20
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
21
+ if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), false)
22
+ raise ArgumentError, "Partition does not support FIPS."
23
+ end
24
+ return Aws::Endpoints::Endpoint.new(url: "https://codecatalyst-fips.global.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
25
+ end
26
+ return Aws::Endpoints::Endpoint.new(url: "https://codecatalyst.global.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
27
+ end
28
+ if Aws::Endpoints::Matchers.set?(region) && (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
29
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
30
+ if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), false)
31
+ raise ArgumentError, "Partition does not support FIPS."
32
+ end
33
+ return Aws::Endpoints::Endpoint.new(url: "https://codecatalyst-fips.global.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
34
+ end
35
+ return Aws::Endpoints::Endpoint.new(url: "https://codecatalyst.global.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
36
+ end
37
+ raise ArgumentError, 'No endpoint could be resolved'
24
38
 
25
- def resolve_endpoint(parameters)
26
- @provider.resolve_endpoint(parameters)
27
39
  end
28
-
29
- # @api private
30
- RULES = <<-JSON
31
- eyJ2ZXJzaW9uIjoiMS4zIiwicGFyYW1ldGVycyI6eyJVc2VGSVBTIjp7ImJ1
32
- aWx0SW4iOiJBV1M6OlVzZUZJUFMiLCJyZXF1aXJlZCI6dHJ1ZSwiZGVmYXVs
33
- dCI6ZmFsc2UsImRvY3VtZW50YXRpb24iOiJXaGVuIHRydWUsIHNlbmQgdGhp
34
- cyByZXF1ZXN0IHRvIHRoZSBGSVBTLWNvbXBsaWFudCByZWdpb25hbCBlbmRw
35
- b2ludC4gSWYgdGhlIGNvbmZpZ3VyZWQgZW5kcG9pbnQgZG9lcyBub3QgaGF2
36
- ZSBhIEZJUFMgY29tcGxpYW50IGVuZHBvaW50LCBkaXNwYXRjaGluZyB0aGUg
37
- cmVxdWVzdCB3aWxsIHJldHVybiBhbiBlcnJvci4iLCJ0eXBlIjoiQm9vbGVh
38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pbeyJmbiI6ImJvb2xlYW5FcXVhbHMiLCJhcmd2IjpbeyJmbiI6Imdl
72
- dEF0dHIiLCJhcmd2IjpbeyJyZWYiOiJQYXJ0aXRpb25SZXN1bHQifSwic3Vw
73
- cG9ydHNGSVBTIl19LGZhbHNlXX1dLCJlcnJvciI6IlBhcnRpdGlvbiBkb2Vz
74
- IG5vdCBzdXBwb3J0IEZJUFMuIiwidHlwZSI6ImVycm9yIn0seyJjb25kaXRp
75
- b25zIjpbXSwiZW5kcG9pbnQiOnsidXJsIjoiaHR0cHM6Ly9jb2RlY2F0YWx5
76
- c3QtZmlwcy5nbG9iYWwue1BhcnRpdGlvblJlc3VsdCNkdWFsU3RhY2tEbnNT
77
- dWZmaXh9IiwicHJvcGVydGllcyI6e30sImhlYWRlcnMiOnt9fSwidHlwZSI6
78
- ImVuZHBvaW50In1dfSx7ImNvbmRpdGlvbnMiOltdLCJlbmRwb2ludCI6eyJ1
79
- cmwiOiJodHRwczovL2NvZGVjYXRhbHlzdC5nbG9iYWwue1BhcnRpdGlvblJl
80
- c3VsdCNkdWFsU3RhY2tEbnNTdWZmaXh9IiwicHJvcGVydGllcyI6e30sImhl
81
- YWRlcnMiOnt9fSwidHlwZSI6ImVuZHBvaW50In1dfV19XX0=
82
-
83
- JSON
84
40
  end
85
41
  end
@@ -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.0.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.0.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: 2022-12-01 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