aws-sdk-finspace 1.21.0 → 1.22.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: b6ae6a20b4488b5dfde1d5da80e6883d8c274ea152683ec5a13f82fdd34851e5
4
- data.tar.gz: d4440ee58a95142bc40f00d235d2f8fa4dcc6a10e4244f0bc2a13c5338537203
3
+ metadata.gz: a92db81497281abf202f421826376f0e631332b3a7f0ff5759280681f058983d
4
+ data.tar.gz: 9fb3adf512f878cb8c9a4e7b5220b12756ed51207dd1d985d7b7463ff55d7c2f
5
5
  SHA512:
6
- metadata.gz: 6a3d91da4aaa0927ca0e31fc511f87935fc5d8b19f5f8da0d8f212055ad39519f112b10f94df55e7ce379ae644d60d51571e8bfaf58c431a003e823c75920c08
7
- data.tar.gz: b87ac07031f532fae6b7622486d833f4279299929774b51bf1a1d4f55d4fcf8269f68b998648666f41486dc18cc30dfb296c784c71906ab5aa41710a41c93754
6
+ metadata.gz: 7b3bb3eb141ac0157810f87f23946a3c593ad3b1b19fee47d7e9a96be40acff68e24b8e5783a79b2ed6f5499191307e7af9b21fd4294c8ffc794da61c9725f39
7
+ data.tar.gz: 4d35cb03d1a7ba9a8c2542139100777f5ce8f832824f2669f4925dd999c27e31f840950a4a5aa5e34d281d263d5194d2b333f83c041a41d020cad8aab4b11e1e
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.22.0 (2023-10-30)
5
+ ------------------
6
+
7
+ * Feature - Introducing new API UpdateKxClusterCodeConfiguration, introducing new cache types for clusters and introducing new deployment modes for updating clusters.
8
+
4
9
  1.21.0 (2023-09-27)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.21.0
1
+ 1.22.0
@@ -2073,6 +2073,76 @@ module Aws::Finspace
2073
2073
  req.send_request(options)
2074
2074
  end
2075
2075
 
2076
+ # Allows you to update code configuration on a running cluster. By using
2077
+ # this API you can update the code, the initialization script path, and
2078
+ # the command line arguments for a specific cluster. The configuration
2079
+ # that you want to update will override any existing configurations on
2080
+ # the cluster.
2081
+ #
2082
+ # @option params [required, String] :environment_id
2083
+ # A unique identifier of the kdb environment.
2084
+ #
2085
+ # @option params [required, String] :cluster_name
2086
+ # The name of the cluster.
2087
+ #
2088
+ # @option params [String] :client_token
2089
+ # A token that ensures idempotency. This token expires in 10 minutes.
2090
+ #
2091
+ # **A suitable default value is auto-generated.** You should normally
2092
+ # not need to pass this option.**
2093
+ #
2094
+ # @option params [required, Types::CodeConfiguration] :code
2095
+ # The structure of the customer code available within the running
2096
+ # cluster.
2097
+ #
2098
+ # @option params [String] :initialization_script
2099
+ # Specifies a Q program that will be run at launch of a cluster. It is a
2100
+ # relative path within *.zip* file that contains the custom code, which
2101
+ # will be loaded on the cluster. It must include the file name itself.
2102
+ # For example, `somedir/init.q`.
2103
+ #
2104
+ # @option params [Array<Types::KxCommandLineArgument>] :command_line_arguments
2105
+ # Specifies the key-value pairs to make them available inside the
2106
+ # cluster.
2107
+ #
2108
+ # @option params [Types::KxClusterCodeDeploymentConfiguration] :deployment_configuration
2109
+ # The configuration that allows you to choose how you want to update the
2110
+ # code on a cluster.
2111
+ #
2112
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
2113
+ #
2114
+ # @example Request syntax with placeholder values
2115
+ #
2116
+ # resp = client.update_kx_cluster_code_configuration({
2117
+ # environment_id: "KxEnvironmentId", # required
2118
+ # cluster_name: "KxClusterName", # required
2119
+ # client_token: "ClientTokenString",
2120
+ # code: { # required
2121
+ # s3_bucket: "S3Bucket",
2122
+ # s3_key: "S3Key",
2123
+ # s3_object_version: "S3ObjectVersion",
2124
+ # },
2125
+ # initialization_script: "InitializationScriptFilePath",
2126
+ # command_line_arguments: [
2127
+ # {
2128
+ # key: "KxCommandLineArgumentKey",
2129
+ # value: "KxCommandLineArgumentValue",
2130
+ # },
2131
+ # ],
2132
+ # deployment_configuration: {
2133
+ # deployment_strategy: "ROLLING", # required, accepts ROLLING, FORCE
2134
+ # },
2135
+ # })
2136
+ #
2137
+ # @see http://docs.aws.amazon.com/goto/WebAPI/finspace-2021-03-12/UpdateKxClusterCodeConfiguration AWS API Documentation
2138
+ #
2139
+ # @overload update_kx_cluster_code_configuration(params = {})
2140
+ # @param [Hash] params ({})
2141
+ def update_kx_cluster_code_configuration(params = {}, options = {})
2142
+ req = build_request(:update_kx_cluster_code_configuration, params)
2143
+ req.send_request(options)
2144
+ end
2145
+
2076
2146
  # Updates the databases mounted on a kdb cluster, which includes the
2077
2147
  # `changesetId` and all the dbPaths to be cached. This API does not
2078
2148
  # allow you to change a database name or add a database if you created a
@@ -2442,7 +2512,7 @@ module Aws::Finspace
2442
2512
  params: params,
2443
2513
  config: config)
2444
2514
  context[:gem_name] = 'aws-sdk-finspace'
2445
- context[:gem_version] = '1.21.0'
2515
+ context[:gem_version] = '1.22.0'
2446
2516
  Seahorse::Client::Request.new(handlers, context)
2447
2517
  end
2448
2518
 
@@ -112,6 +112,8 @@ module Aws::Finspace
112
112
  KxChangesetListEntry = Shapes::StructureShape.new(name: 'KxChangesetListEntry')
113
113
  KxChangesets = Shapes::ListShape.new(name: 'KxChangesets')
114
114
  KxCluster = Shapes::StructureShape.new(name: 'KxCluster')
115
+ KxClusterCodeDeploymentConfiguration = Shapes::StructureShape.new(name: 'KxClusterCodeDeploymentConfiguration')
116
+ KxClusterCodeDeploymentStrategy = Shapes::StringShape.new(name: 'KxClusterCodeDeploymentStrategy')
115
117
  KxClusterDescription = Shapes::StringShape.new(name: 'KxClusterDescription')
116
118
  KxClusterName = Shapes::StringShape.new(name: 'KxClusterName')
117
119
  KxClusterNodeIdString = Shapes::StringShape.new(name: 'KxClusterNodeIdString')
@@ -205,6 +207,8 @@ module Aws::Finspace
205
207
  UntagResourceResponse = Shapes::StructureShape.new(name: 'UntagResourceResponse')
206
208
  UpdateEnvironmentRequest = Shapes::StructureShape.new(name: 'UpdateEnvironmentRequest')
207
209
  UpdateEnvironmentResponse = Shapes::StructureShape.new(name: 'UpdateEnvironmentResponse')
210
+ UpdateKxClusterCodeConfigurationRequest = Shapes::StructureShape.new(name: 'UpdateKxClusterCodeConfigurationRequest')
211
+ UpdateKxClusterCodeConfigurationResponse = Shapes::StructureShape.new(name: 'UpdateKxClusterCodeConfigurationResponse')
208
212
  UpdateKxClusterDatabasesRequest = Shapes::StructureShape.new(name: 'UpdateKxClusterDatabasesRequest')
209
213
  UpdateKxClusterDatabasesResponse = Shapes::StructureShape.new(name: 'UpdateKxClusterDatabasesResponse')
210
214
  UpdateKxDatabaseRequest = Shapes::StructureShape.new(name: 'UpdateKxDatabaseRequest')
@@ -598,6 +602,9 @@ module Aws::Finspace
598
602
  KxCluster.add_member(:created_timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "createdTimestamp"))
599
603
  KxCluster.struct_class = Types::KxCluster
600
604
 
605
+ KxClusterCodeDeploymentConfiguration.add_member(:deployment_strategy, Shapes::ShapeRef.new(shape: KxClusterCodeDeploymentStrategy, required: true, location_name: "deploymentStrategy"))
606
+ KxClusterCodeDeploymentConfiguration.struct_class = Types::KxClusterCodeDeploymentConfiguration
607
+
601
608
  KxClusters.member = Shapes::ShapeRef.new(shape: KxCluster)
602
609
 
603
610
  KxCommandLineArgument.add_member(:key, Shapes::ShapeRef.new(shape: KxCommandLineArgumentKey, location_name: "key"))
@@ -810,6 +817,17 @@ module Aws::Finspace
810
817
  UpdateEnvironmentResponse.add_member(:environment, Shapes::ShapeRef.new(shape: Environment, location_name: "environment"))
811
818
  UpdateEnvironmentResponse.struct_class = Types::UpdateEnvironmentResponse
812
819
 
820
+ UpdateKxClusterCodeConfigurationRequest.add_member(:environment_id, Shapes::ShapeRef.new(shape: KxEnvironmentId, required: true, location: "uri", location_name: "environmentId"))
821
+ UpdateKxClusterCodeConfigurationRequest.add_member(:cluster_name, Shapes::ShapeRef.new(shape: KxClusterName, required: true, location: "uri", location_name: "clusterName"))
822
+ UpdateKxClusterCodeConfigurationRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientTokenString, location_name: "clientToken", metadata: {"idempotencyToken"=>true}))
823
+ UpdateKxClusterCodeConfigurationRequest.add_member(:code, Shapes::ShapeRef.new(shape: CodeConfiguration, required: true, location_name: "code"))
824
+ UpdateKxClusterCodeConfigurationRequest.add_member(:initialization_script, Shapes::ShapeRef.new(shape: InitializationScriptFilePath, location_name: "initializationScript"))
825
+ UpdateKxClusterCodeConfigurationRequest.add_member(:command_line_arguments, Shapes::ShapeRef.new(shape: KxCommandLineArguments, location_name: "commandLineArguments"))
826
+ UpdateKxClusterCodeConfigurationRequest.add_member(:deployment_configuration, Shapes::ShapeRef.new(shape: KxClusterCodeDeploymentConfiguration, location_name: "deploymentConfiguration"))
827
+ UpdateKxClusterCodeConfigurationRequest.struct_class = Types::UpdateKxClusterCodeConfigurationRequest
828
+
829
+ UpdateKxClusterCodeConfigurationResponse.struct_class = Types::UpdateKxClusterCodeConfigurationResponse
830
+
813
831
  UpdateKxClusterDatabasesRequest.add_member(:environment_id, Shapes::ShapeRef.new(shape: KxEnvironmentId, required: true, location: "uri", location_name: "environmentId"))
814
832
  UpdateKxClusterDatabasesRequest.add_member(:cluster_name, Shapes::ShapeRef.new(shape: KxClusterName, required: true, location: "uri", location_name: "clusterName"))
815
833
  UpdateKxClusterDatabasesRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientTokenString, location_name: "clientToken", metadata: {"idempotencyToken"=>true}))
@@ -1328,6 +1346,21 @@ module Aws::Finspace
1328
1346
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1329
1347
  end)
1330
1348
 
1349
+ api.add_operation(:update_kx_cluster_code_configuration, Seahorse::Model::Operation.new.tap do |o|
1350
+ o.name = "UpdateKxClusterCodeConfiguration"
1351
+ o.http_method = "PUT"
1352
+ o.http_request_uri = "/kx/environments/{environmentId}/clusters/{clusterName}/configuration/code"
1353
+ o.input = Shapes::ShapeRef.new(shape: UpdateKxClusterCodeConfigurationRequest)
1354
+ o.output = Shapes::ShapeRef.new(shape: UpdateKxClusterCodeConfigurationResponse)
1355
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1356
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1357
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1358
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
1359
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1360
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
1361
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1362
+ end)
1363
+
1331
1364
  api.add_operation(:update_kx_cluster_databases, Seahorse::Model::Operation.new.tap do |o|
1332
1365
  o.name = "UpdateKxClusterDatabases"
1333
1366
  o.http_method = "PUT"
@@ -32,7 +32,7 @@ module Aws::Finspace
32
32
  raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
33
33
  end
34
34
  if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
35
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
35
+ if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
36
36
  return Aws::Endpoints::Endpoint.new(url: "https://finspace-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
37
37
  end
38
38
  raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
@@ -418,6 +418,20 @@ module Aws::Finspace
418
418
  end
419
419
  end
420
420
 
421
+ class UpdateKxClusterCodeConfiguration
422
+ def self.build(context)
423
+ unless context.config.regional_endpoint
424
+ endpoint = context.config.endpoint.to_s
425
+ end
426
+ Aws::Finspace::EndpointParameters.new(
427
+ region: context.config.region,
428
+ use_dual_stack: context.config.use_dualstack_endpoint,
429
+ use_fips: context.config.use_fips_endpoint,
430
+ endpoint: endpoint,
431
+ )
432
+ end
433
+ end
434
+
421
435
  class UpdateKxClusterDatabases
422
436
  def self.build(context)
423
437
  unless context.config.regional_endpoint
@@ -114,6 +114,8 @@ module Aws::Finspace
114
114
  Aws::Finspace::Endpoints::UntagResource.build(context)
115
115
  when :update_environment
116
116
  Aws::Finspace::Endpoints::UpdateEnvironment.build(context)
117
+ when :update_kx_cluster_code_configuration
118
+ Aws::Finspace::Endpoints::UpdateKxClusterCodeConfiguration.build(context)
117
119
  when :update_kx_cluster_databases
118
120
  Aws::Finspace::Endpoints::UpdateKxClusterDatabases.build(context)
119
121
  when :update_kx_database
@@ -1842,12 +1842,20 @@ module Aws::Finspace
1842
1842
  # The configuration for read only disk cache associated with a cluster.
1843
1843
  #
1844
1844
  # @!attribute [rw] type
1845
- # The type of cache storage . The valid values are:
1845
+ # The type of cache storage. The valid values are:
1846
1846
  #
1847
1847
  # * CACHE\_1000 – This type provides at least 1000 MB/s disk access
1848
1848
  # throughput.
1849
1849
  #
1850
- # ^
1850
+ # * CACHE\_250 – This type provides at least 250 MB/s disk access
1851
+ # throughput.
1852
+ #
1853
+ # * CACHE\_12 – This type provides at least 12 MB/s disk access
1854
+ # throughput.
1855
+ #
1856
+ # For cache type `CACHE_1000` and `CACHE_250` you can select cache
1857
+ # size as 1200 GB or increments of 2400 GB. For cache type `CACHE_12`
1858
+ # you can select the cache size in increments of 6000 GB.
1851
1859
  # @return [String]
1852
1860
  #
1853
1861
  # @!attribute [rw] size
@@ -2032,6 +2040,29 @@ module Aws::Finspace
2032
2040
  include Aws::Structure
2033
2041
  end
2034
2042
 
2043
+ # The configuration that allows you to choose how you want to update
2044
+ # code on a cluster. Depending on the option you choose, you can reduce
2045
+ # the time it takes to update the cluster.
2046
+ #
2047
+ # @!attribute [rw] deployment_strategy
2048
+ # The type of deployment that you want on a cluster.
2049
+ #
2050
+ # * ROLLING – This options updates the cluster by stopping the exiting
2051
+ # q process and starting a new q process with updated configuration.
2052
+ #
2053
+ # * FORCE – This option updates the cluster by immediately stopping
2054
+ # all the running processes before starting up new ones with the
2055
+ # updated configuration.
2056
+ # @return [String]
2057
+ #
2058
+ # @see http://docs.aws.amazon.com/goto/WebAPI/finspace-2021-03-12/KxClusterCodeDeploymentConfiguration AWS API Documentation
2059
+ #
2060
+ class KxClusterCodeDeploymentConfiguration < Struct.new(
2061
+ :deployment_strategy)
2062
+ SENSITIVE = []
2063
+ include Aws::Structure
2064
+ end
2065
+
2035
2066
  # Defines the key-value pairs to make them available inside the cluster.
2036
2067
  #
2037
2068
  # @!attribute [rw] key
@@ -2138,20 +2169,21 @@ module Aws::Finspace
2138
2169
 
2139
2170
  # The configuration that allows you to choose how you want to update the
2140
2171
  # databases on a cluster. Depending on the option you choose, you can
2141
- # reduce the time it takes to update the database changesets on to a
2142
- # cluster.
2172
+ # reduce the time it takes to update the cluster.
2143
2173
  #
2144
2174
  # @!attribute [rw] deployment_strategy
2145
2175
  # The type of deployment that you want on a cluster.
2146
2176
  #
2147
- # * ROLLING – This options loads the updated database by stopping the
2148
- # exiting q process and starting a new q process with updated
2149
- # configuration.
2177
+ # * ROLLING – This options updates the cluster by stopping the exiting
2178
+ # q process and starting a new q process with updated configuration.
2150
2179
  #
2151
- # * NO\_RESTART – This option loads the updated database on the
2152
- # running q process without stopping it. This option is quicker as
2153
- # it reduces the turn around time to update a kdb database changeset
2154
- # configuration on a cluster.
2180
+ # * NO\_RESTART – This option updates the cluster without stopping the
2181
+ # running q process. It is only available for `HDB` type cluster.
2182
+ # This option is quicker as it reduces the turn around time to
2183
+ # update configuration on a cluster.
2184
+ #
2185
+ # With this deployment mode, you cannot update the
2186
+ # `initializationScript` and `commandLineArguments` parameters.
2155
2187
  # @return [String]
2156
2188
  #
2157
2189
  # @see http://docs.aws.amazon.com/goto/WebAPI/finspace-2021-03-12/KxDeploymentConfiguration AWS API Documentation
@@ -2985,6 +3017,61 @@ module Aws::Finspace
2985
3017
  include Aws::Structure
2986
3018
  end
2987
3019
 
3020
+ # @!attribute [rw] environment_id
3021
+ # A unique identifier of the kdb environment.
3022
+ # @return [String]
3023
+ #
3024
+ # @!attribute [rw] cluster_name
3025
+ # The name of the cluster.
3026
+ # @return [String]
3027
+ #
3028
+ # @!attribute [rw] client_token
3029
+ # A token that ensures idempotency. This token expires in 10 minutes.
3030
+ #
3031
+ # **A suitable default value is auto-generated.** You should normally
3032
+ # not need to pass this option.
3033
+ # @return [String]
3034
+ #
3035
+ # @!attribute [rw] code
3036
+ # The structure of the customer code available within the running
3037
+ # cluster.
3038
+ # @return [Types::CodeConfiguration]
3039
+ #
3040
+ # @!attribute [rw] initialization_script
3041
+ # Specifies a Q program that will be run at launch of a cluster. It is
3042
+ # a relative path within *.zip* file that contains the custom code,
3043
+ # which will be loaded on the cluster. It must include the file name
3044
+ # itself. For example, `somedir/init.q`.
3045
+ # @return [String]
3046
+ #
3047
+ # @!attribute [rw] command_line_arguments
3048
+ # Specifies the key-value pairs to make them available inside the
3049
+ # cluster.
3050
+ # @return [Array<Types::KxCommandLineArgument>]
3051
+ #
3052
+ # @!attribute [rw] deployment_configuration
3053
+ # The configuration that allows you to choose how you want to update
3054
+ # the code on a cluster.
3055
+ # @return [Types::KxClusterCodeDeploymentConfiguration]
3056
+ #
3057
+ # @see http://docs.aws.amazon.com/goto/WebAPI/finspace-2021-03-12/UpdateKxClusterCodeConfigurationRequest AWS API Documentation
3058
+ #
3059
+ class UpdateKxClusterCodeConfigurationRequest < Struct.new(
3060
+ :environment_id,
3061
+ :cluster_name,
3062
+ :client_token,
3063
+ :code,
3064
+ :initialization_script,
3065
+ :command_line_arguments,
3066
+ :deployment_configuration)
3067
+ SENSITIVE = []
3068
+ include Aws::Structure
3069
+ end
3070
+
3071
+ # @see http://docs.aws.amazon.com/goto/WebAPI/finspace-2021-03-12/UpdateKxClusterCodeConfigurationResponse AWS API Documentation
3072
+ #
3073
+ class UpdateKxClusterCodeConfigurationResponse < Aws::EmptyStructure; end
3074
+
2988
3075
  # @!attribute [rw] environment_id
2989
3076
  # The unique identifier of a kdb environment.
2990
3077
  # @return [String]
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-finspace/customizations'
52
52
  # @!group service
53
53
  module Aws::Finspace
54
54
 
55
- GEM_VERSION = '1.21.0'
55
+ GEM_VERSION = '1.22.0'
56
56
 
57
57
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-finspace
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.21.0
4
+ version: 1.22.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-09-27 00:00:00.000000000 Z
11
+ date: 2023-10-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core