aws-sdk-elasticsearchservice 1.45.0 → 1.46.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: 6cd4641724dded5ba138c4679d4962f1b54102755e7ad72872982f03e9666bce
4
- data.tar.gz: 81cce4f34512af12eb364b64a4fc89b64fd2c8359f45769423e02b86a595b2bb
3
+ metadata.gz: 7fa83ca0de550bdaa4626470abda0f9d5dbedfcb971db3b8817150afc1b5cfaa
4
+ data.tar.gz: ec6a6fee1d8b498b912159be72625e1f59394fec372f029c3f9557c9508a9fff
5
5
  SHA512:
6
- metadata.gz: 0c8a63826362df84e982cf2301b931a46e88881273ed3d9d9b7eea8a6c26c0bd7e78e7b30e8b616b855b6829c9e5ba66359da0ba63c589423cd557ff7ae7aab4
7
- data.tar.gz: b3bc53372b1b1135380c7c5a4d06c3a4b65a91d65744a2c63b82c252e10f06c781b974fe15e4d227532cf4350b50c8a93bbb2522d214ea5c3638fc8ae871742a
6
+ metadata.gz: '08dbb0e11e7c6d2e9df98c1fd9183d8151f48a9199e3e520cc427a486cc338b015f8a18ed980223c5d287b5ef20e577bb0b5dd660e302fd66ee967b794f8887a'
7
+ data.tar.gz: 939648b0d67ae9798665e9cb6cdce5be27665d4ee321cb6db8f5078d5bd9df8646df67931f1be4160816a34c970af091b96d270fb55b15d6e71879db40925b68
@@ -48,6 +48,6 @@ require_relative 'aws-sdk-elasticsearchservice/customizations'
48
48
  # @!group service
49
49
  module Aws::ElasticsearchService
50
50
 
51
- GEM_VERSION = '1.45.0'
51
+ GEM_VERSION = '1.46.0'
52
52
 
53
53
  end
@@ -426,6 +426,7 @@ module Aws::ElasticsearchService
426
426
  # resp.domain_package_details.last_updated #=> Time
427
427
  # resp.domain_package_details.domain_name #=> String
428
428
  # resp.domain_package_details.domain_package_status #=> String, one of "ASSOCIATING", "ASSOCIATION_FAILED", "ACTIVE", "DISSOCIATING", "DISSOCIATION_FAILED"
429
+ # resp.domain_package_details.package_version #=> String
429
430
  # resp.domain_package_details.reference_path #=> String
430
431
  # resp.domain_package_details.error_details.error_type #=> String
431
432
  # resp.domain_package_details.error_details.error_message #=> String
@@ -820,6 +821,8 @@ module Aws::ElasticsearchService
820
821
  # resp.package_details.package_description #=> String
821
822
  # resp.package_details.package_status #=> String, one of "COPYING", "COPY_FAILED", "VALIDATING", "VALIDATION_FAILED", "AVAILABLE", "DELETING", "DELETED", "DELETE_FAILED"
822
823
  # resp.package_details.created_at #=> Time
824
+ # resp.package_details.last_updated_at #=> Time
825
+ # resp.package_details.available_package_version #=> String
823
826
  # resp.package_details.error_details.error_type #=> String
824
827
  # resp.package_details.error_details.error_message #=> String
825
828
  #
@@ -1039,6 +1042,8 @@ module Aws::ElasticsearchService
1039
1042
  # resp.package_details.package_description #=> String
1040
1043
  # resp.package_details.package_status #=> String, one of "COPYING", "COPY_FAILED", "VALIDATING", "VALIDATION_FAILED", "AVAILABLE", "DELETING", "DELETED", "DELETE_FAILED"
1041
1044
  # resp.package_details.created_at #=> Time
1045
+ # resp.package_details.last_updated_at #=> Time
1046
+ # resp.package_details.available_package_version #=> String
1042
1047
  # resp.package_details.error_details.error_type #=> String
1043
1048
  # resp.package_details.error_details.error_message #=> String
1044
1049
  #
@@ -1598,6 +1603,8 @@ module Aws::ElasticsearchService
1598
1603
  # resp.package_details_list[0].package_description #=> String
1599
1604
  # resp.package_details_list[0].package_status #=> String, one of "COPYING", "COPY_FAILED", "VALIDATING", "VALIDATION_FAILED", "AVAILABLE", "DELETING", "DELETED", "DELETE_FAILED"
1600
1605
  # resp.package_details_list[0].created_at #=> Time
1606
+ # resp.package_details_list[0].last_updated_at #=> Time
1607
+ # resp.package_details_list[0].available_package_version #=> String
1601
1608
  # resp.package_details_list[0].error_details.error_type #=> String
1602
1609
  # resp.package_details_list[0].error_details.error_message #=> String
1603
1610
  # resp.next_token #=> String
@@ -1747,6 +1754,7 @@ module Aws::ElasticsearchService
1747
1754
  # resp.domain_package_details.last_updated #=> Time
1748
1755
  # resp.domain_package_details.domain_name #=> String
1749
1756
  # resp.domain_package_details.domain_package_status #=> String, one of "ASSOCIATING", "ASSOCIATION_FAILED", "ACTIVE", "DISSOCIATING", "DISSOCIATION_FAILED"
1757
+ # resp.domain_package_details.package_version #=> String
1750
1758
  # resp.domain_package_details.reference_path #=> String
1751
1759
  # resp.domain_package_details.error_details.error_type #=> String
1752
1760
  # resp.domain_package_details.error_details.error_message #=> String
@@ -1792,6 +1800,52 @@ module Aws::ElasticsearchService
1792
1800
  req.send_request(options)
1793
1801
  end
1794
1802
 
1803
+ # Returns a list of versions of the package, along with their creation
1804
+ # time and commit message.
1805
+ #
1806
+ # @option params [required, String] :package_id
1807
+ # Returns an audit history of versions of the package.
1808
+ #
1809
+ # @option params [Integer] :max_results
1810
+ # Limits results to a maximum number of versions.
1811
+ #
1812
+ # @option params [String] :next_token
1813
+ # Used for pagination. Only necessary if a previous API call includes a
1814
+ # non-null NextToken value. If provided, returns results for the next
1815
+ # page.
1816
+ #
1817
+ # @return [Types::GetPackageVersionHistoryResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1818
+ #
1819
+ # * {Types::GetPackageVersionHistoryResponse#package_id #package_id} => String
1820
+ # * {Types::GetPackageVersionHistoryResponse#package_version_history_list #package_version_history_list} => Array<Types::PackageVersionHistory>
1821
+ # * {Types::GetPackageVersionHistoryResponse#next_token #next_token} => String
1822
+ #
1823
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1824
+ #
1825
+ # @example Request syntax with placeholder values
1826
+ #
1827
+ # resp = client.get_package_version_history({
1828
+ # package_id: "PackageID", # required
1829
+ # max_results: 1,
1830
+ # next_token: "NextToken",
1831
+ # })
1832
+ #
1833
+ # @example Response structure
1834
+ #
1835
+ # resp.package_id #=> String
1836
+ # resp.package_version_history_list #=> Array
1837
+ # resp.package_version_history_list[0].package_version #=> String
1838
+ # resp.package_version_history_list[0].commit_message #=> String
1839
+ # resp.package_version_history_list[0].created_at #=> Time
1840
+ # resp.next_token #=> String
1841
+ #
1842
+ # @overload get_package_version_history(params = {})
1843
+ # @param [Hash] params ({})
1844
+ def get_package_version_history(params = {}, options = {})
1845
+ req = build_request(:get_package_version_history, params)
1846
+ req.send_request(options)
1847
+ end
1848
+
1795
1849
  # Retrieves the complete history of the last 10 upgrades that were
1796
1850
  # performed on the domain.
1797
1851
  #
@@ -1935,6 +1989,7 @@ module Aws::ElasticsearchService
1935
1989
  # resp.domain_package_details_list[0].last_updated #=> Time
1936
1990
  # resp.domain_package_details_list[0].domain_name #=> String
1937
1991
  # resp.domain_package_details_list[0].domain_package_status #=> String, one of "ASSOCIATING", "ASSOCIATION_FAILED", "ACTIVE", "DISSOCIATING", "DISSOCIATION_FAILED"
1992
+ # resp.domain_package_details_list[0].package_version #=> String
1938
1993
  # resp.domain_package_details_list[0].reference_path #=> String
1939
1994
  # resp.domain_package_details_list[0].error_details.error_type #=> String
1940
1995
  # resp.domain_package_details_list[0].error_details.error_message #=> String
@@ -2071,6 +2126,7 @@ module Aws::ElasticsearchService
2071
2126
  # resp.domain_package_details_list[0].last_updated #=> Time
2072
2127
  # resp.domain_package_details_list[0].domain_name #=> String
2073
2128
  # resp.domain_package_details_list[0].domain_package_status #=> String, one of "ASSOCIATING", "ASSOCIATION_FAILED", "ACTIVE", "DISSOCIATING", "DISSOCIATION_FAILED"
2129
+ # resp.domain_package_details_list[0].package_version #=> String
2074
2130
  # resp.domain_package_details_list[0].reference_path #=> String
2075
2131
  # resp.domain_package_details_list[0].error_details.error_type #=> String
2076
2132
  # resp.domain_package_details_list[0].error_details.error_message #=> String
@@ -2509,6 +2565,58 @@ module Aws::ElasticsearchService
2509
2565
  req.send_request(options)
2510
2566
  end
2511
2567
 
2568
+ # Updates a package for use with Amazon ES domains.
2569
+ #
2570
+ # @option params [required, String] :package_id
2571
+ # Unique identifier for the package.
2572
+ #
2573
+ # @option params [required, Types::PackageSource] :package_source
2574
+ # The S3 location for importing the package specified as `S3BucketName`
2575
+ # and `S3Key`
2576
+ #
2577
+ # @option params [String] :package_description
2578
+ # New description of the package.
2579
+ #
2580
+ # @option params [String] :commit_message
2581
+ # An info message for the new version which will be shown as part of
2582
+ # `GetPackageVersionHistoryResponse`.
2583
+ #
2584
+ # @return [Types::UpdatePackageResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2585
+ #
2586
+ # * {Types::UpdatePackageResponse#package_details #package_details} => Types::PackageDetails
2587
+ #
2588
+ # @example Request syntax with placeholder values
2589
+ #
2590
+ # resp = client.update_package({
2591
+ # package_id: "PackageID", # required
2592
+ # package_source: { # required
2593
+ # s3_bucket_name: "S3BucketName",
2594
+ # s3_key: "S3Key",
2595
+ # },
2596
+ # package_description: "PackageDescription",
2597
+ # commit_message: "CommitMessage",
2598
+ # })
2599
+ #
2600
+ # @example Response structure
2601
+ #
2602
+ # resp.package_details.package_id #=> String
2603
+ # resp.package_details.package_name #=> String
2604
+ # resp.package_details.package_type #=> String, one of "TXT-DICTIONARY"
2605
+ # resp.package_details.package_description #=> String
2606
+ # resp.package_details.package_status #=> String, one of "COPYING", "COPY_FAILED", "VALIDATING", "VALIDATION_FAILED", "AVAILABLE", "DELETING", "DELETED", "DELETE_FAILED"
2607
+ # resp.package_details.created_at #=> Time
2608
+ # resp.package_details.last_updated_at #=> Time
2609
+ # resp.package_details.available_package_version #=> String
2610
+ # resp.package_details.error_details.error_type #=> String
2611
+ # resp.package_details.error_details.error_message #=> String
2612
+ #
2613
+ # @overload update_package(params = {})
2614
+ # @param [Hash] params ({})
2615
+ def update_package(params = {}, options = {})
2616
+ req = build_request(:update_package, params)
2617
+ req.send_request(options)
2618
+ end
2619
+
2512
2620
  # Allows you to either upgrade your domain or perform an Upgrade
2513
2621
  # eligibility check to a compatible Elasticsearch version.
2514
2622
  #
@@ -2566,7 +2674,7 @@ module Aws::ElasticsearchService
2566
2674
  params: params,
2567
2675
  config: config)
2568
2676
  context[:gem_name] = 'aws-sdk-elasticsearchservice'
2569
- context[:gem_version] = '1.45.0'
2677
+ context[:gem_version] = '1.46.0'
2570
2678
  Seahorse::Client::Request.new(handlers, context)
2571
2679
  end
2572
2680
 
@@ -36,6 +36,7 @@ module Aws::ElasticsearchService
36
36
  CloudWatchLogsLogGroupArn = Shapes::StringShape.new(name: 'CloudWatchLogsLogGroupArn')
37
37
  CognitoOptions = Shapes::StructureShape.new(name: 'CognitoOptions')
38
38
  CognitoOptionsStatus = Shapes::StructureShape.new(name: 'CognitoOptionsStatus')
39
+ CommitMessage = Shapes::StringShape.new(name: 'CommitMessage')
39
40
  CompatibleElasticsearchVersionsList = Shapes::ListShape.new(name: 'CompatibleElasticsearchVersionsList')
40
41
  CompatibleVersionsMap = Shapes::StructureShape.new(name: 'CompatibleVersionsMap')
41
42
  ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
@@ -122,6 +123,8 @@ module Aws::ElasticsearchService
122
123
  GUID = Shapes::StringShape.new(name: 'GUID')
123
124
  GetCompatibleElasticsearchVersionsRequest = Shapes::StructureShape.new(name: 'GetCompatibleElasticsearchVersionsRequest')
124
125
  GetCompatibleElasticsearchVersionsResponse = Shapes::StructureShape.new(name: 'GetCompatibleElasticsearchVersionsResponse')
126
+ GetPackageVersionHistoryRequest = Shapes::StructureShape.new(name: 'GetPackageVersionHistoryRequest')
127
+ GetPackageVersionHistoryResponse = Shapes::StructureShape.new(name: 'GetPackageVersionHistoryResponse')
125
128
  GetUpgradeHistoryRequest = Shapes::StructureShape.new(name: 'GetUpgradeHistoryRequest')
126
129
  GetUpgradeHistoryResponse = Shapes::StructureShape.new(name: 'GetUpgradeHistoryResponse')
127
130
  GetUpgradeStatusRequest = Shapes::StructureShape.new(name: 'GetUpgradeStatusRequest')
@@ -188,6 +191,9 @@ module Aws::ElasticsearchService
188
191
  PackageSource = Shapes::StructureShape.new(name: 'PackageSource')
189
192
  PackageStatus = Shapes::StringShape.new(name: 'PackageStatus')
190
193
  PackageType = Shapes::StringShape.new(name: 'PackageType')
194
+ PackageVersion = Shapes::StringShape.new(name: 'PackageVersion')
195
+ PackageVersionHistory = Shapes::StructureShape.new(name: 'PackageVersionHistory')
196
+ PackageVersionHistoryList = Shapes::ListShape.new(name: 'PackageVersionHistoryList')
191
197
  Password = Shapes::StringShape.new(name: 'Password')
192
198
  PolicyDocument = Shapes::StringShape.new(name: 'PolicyDocument')
193
199
  PurchaseReservedElasticsearchInstanceOfferingRequest = Shapes::StructureShape.new(name: 'PurchaseReservedElasticsearchInstanceOfferingRequest')
@@ -238,6 +244,8 @@ module Aws::ElasticsearchService
238
244
  UIntValue = Shapes::IntegerShape.new(name: 'UIntValue')
239
245
  UpdateElasticsearchDomainConfigRequest = Shapes::StructureShape.new(name: 'UpdateElasticsearchDomainConfigRequest')
240
246
  UpdateElasticsearchDomainConfigResponse = Shapes::StructureShape.new(name: 'UpdateElasticsearchDomainConfigResponse')
247
+ UpdatePackageRequest = Shapes::StructureShape.new(name: 'UpdatePackageRequest')
248
+ UpdatePackageResponse = Shapes::StructureShape.new(name: 'UpdatePackageResponse')
241
249
  UpdateTimestamp = Shapes::TimestampShape.new(name: 'UpdateTimestamp')
242
250
  UpgradeElasticsearchDomainRequest = Shapes::StructureShape.new(name: 'UpgradeElasticsearchDomainRequest')
243
251
  UpgradeElasticsearchDomainResponse = Shapes::StructureShape.new(name: 'UpgradeElasticsearchDomainResponse')
@@ -517,6 +525,7 @@ module Aws::ElasticsearchService
517
525
  DomainPackageDetails.add_member(:last_updated, Shapes::ShapeRef.new(shape: LastUpdated, location_name: "LastUpdated"))
518
526
  DomainPackageDetails.add_member(:domain_name, Shapes::ShapeRef.new(shape: DomainName, location_name: "DomainName"))
519
527
  DomainPackageDetails.add_member(:domain_package_status, Shapes::ShapeRef.new(shape: DomainPackageStatus, location_name: "DomainPackageStatus"))
528
+ DomainPackageDetails.add_member(:package_version, Shapes::ShapeRef.new(shape: PackageVersion, location_name: "PackageVersion"))
520
529
  DomainPackageDetails.add_member(:reference_path, Shapes::ShapeRef.new(shape: ReferencePath, location_name: "ReferencePath"))
521
530
  DomainPackageDetails.add_member(:error_details, Shapes::ShapeRef.new(shape: ErrorDetails, location_name: "ErrorDetails"))
522
531
  DomainPackageDetails.struct_class = Types::DomainPackageDetails
@@ -626,6 +635,16 @@ module Aws::ElasticsearchService
626
635
  GetCompatibleElasticsearchVersionsResponse.add_member(:compatible_elasticsearch_versions, Shapes::ShapeRef.new(shape: CompatibleElasticsearchVersionsList, location_name: "CompatibleElasticsearchVersions"))
627
636
  GetCompatibleElasticsearchVersionsResponse.struct_class = Types::GetCompatibleElasticsearchVersionsResponse
628
637
 
638
+ GetPackageVersionHistoryRequest.add_member(:package_id, Shapes::ShapeRef.new(shape: PackageID, required: true, location: "uri", location_name: "PackageID"))
639
+ GetPackageVersionHistoryRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "maxResults"))
640
+ GetPackageVersionHistoryRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location: "querystring", location_name: "nextToken"))
641
+ GetPackageVersionHistoryRequest.struct_class = Types::GetPackageVersionHistoryRequest
642
+
643
+ GetPackageVersionHistoryResponse.add_member(:package_id, Shapes::ShapeRef.new(shape: PackageID, location_name: "PackageID"))
644
+ GetPackageVersionHistoryResponse.add_member(:package_version_history_list, Shapes::ShapeRef.new(shape: PackageVersionHistoryList, location_name: "PackageVersionHistoryList"))
645
+ GetPackageVersionHistoryResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
646
+ GetPackageVersionHistoryResponse.struct_class = Types::GetPackageVersionHistoryResponse
647
+
629
648
  GetUpgradeHistoryRequest.add_member(:domain_name, Shapes::ShapeRef.new(shape: DomainName, required: true, location: "uri", location_name: "DomainName"))
630
649
  GetUpgradeHistoryRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "maxResults"))
631
650
  GetUpgradeHistoryRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location: "querystring", location_name: "nextToken"))
@@ -776,6 +795,8 @@ module Aws::ElasticsearchService
776
795
  PackageDetails.add_member(:package_description, Shapes::ShapeRef.new(shape: PackageDescription, location_name: "PackageDescription"))
777
796
  PackageDetails.add_member(:package_status, Shapes::ShapeRef.new(shape: PackageStatus, location_name: "PackageStatus"))
778
797
  PackageDetails.add_member(:created_at, Shapes::ShapeRef.new(shape: CreatedAt, location_name: "CreatedAt"))
798
+ PackageDetails.add_member(:last_updated_at, Shapes::ShapeRef.new(shape: LastUpdated, location_name: "LastUpdatedAt"))
799
+ PackageDetails.add_member(:available_package_version, Shapes::ShapeRef.new(shape: PackageVersion, location_name: "AvailablePackageVersion"))
779
800
  PackageDetails.add_member(:error_details, Shapes::ShapeRef.new(shape: ErrorDetails, location_name: "ErrorDetails"))
780
801
  PackageDetails.struct_class = Types::PackageDetails
781
802
 
@@ -785,6 +806,13 @@ module Aws::ElasticsearchService
785
806
  PackageSource.add_member(:s3_key, Shapes::ShapeRef.new(shape: S3Key, location_name: "S3Key"))
786
807
  PackageSource.struct_class = Types::PackageSource
787
808
 
809
+ PackageVersionHistory.add_member(:package_version, Shapes::ShapeRef.new(shape: PackageVersion, location_name: "PackageVersion"))
810
+ PackageVersionHistory.add_member(:commit_message, Shapes::ShapeRef.new(shape: CommitMessage, location_name: "CommitMessage"))
811
+ PackageVersionHistory.add_member(:created_at, Shapes::ShapeRef.new(shape: CreatedAt, location_name: "CreatedAt"))
812
+ PackageVersionHistory.struct_class = Types::PackageVersionHistory
813
+
814
+ PackageVersionHistoryList.member = Shapes::ShapeRef.new(shape: PackageVersionHistory)
815
+
788
816
  PurchaseReservedElasticsearchInstanceOfferingRequest.add_member(:reserved_elasticsearch_instance_offering_id, Shapes::ShapeRef.new(shape: GUID, required: true, location_name: "ReservedElasticsearchInstanceOfferingId"))
789
817
  PurchaseReservedElasticsearchInstanceOfferingRequest.add_member(:reservation_name, Shapes::ShapeRef.new(shape: ReservationToken, required: true, location_name: "ReservationName"))
790
818
  PurchaseReservedElasticsearchInstanceOfferingRequest.add_member(:instance_count, Shapes::ShapeRef.new(shape: InstanceCount, location_name: "InstanceCount"))
@@ -923,6 +951,15 @@ module Aws::ElasticsearchService
923
951
  UpdateElasticsearchDomainConfigResponse.add_member(:domain_config, Shapes::ShapeRef.new(shape: ElasticsearchDomainConfig, required: true, location_name: "DomainConfig"))
924
952
  UpdateElasticsearchDomainConfigResponse.struct_class = Types::UpdateElasticsearchDomainConfigResponse
925
953
 
954
+ UpdatePackageRequest.add_member(:package_id, Shapes::ShapeRef.new(shape: PackageID, required: true, location_name: "PackageID"))
955
+ UpdatePackageRequest.add_member(:package_source, Shapes::ShapeRef.new(shape: PackageSource, required: true, location_name: "PackageSource"))
956
+ UpdatePackageRequest.add_member(:package_description, Shapes::ShapeRef.new(shape: PackageDescription, location_name: "PackageDescription"))
957
+ UpdatePackageRequest.add_member(:commit_message, Shapes::ShapeRef.new(shape: CommitMessage, location_name: "CommitMessage"))
958
+ UpdatePackageRequest.struct_class = Types::UpdatePackageRequest
959
+
960
+ UpdatePackageResponse.add_member(:package_details, Shapes::ShapeRef.new(shape: PackageDetails, location_name: "PackageDetails"))
961
+ UpdatePackageResponse.struct_class = Types::UpdatePackageResponse
962
+
926
963
  UpgradeElasticsearchDomainRequest.add_member(:domain_name, Shapes::ShapeRef.new(shape: DomainName, required: true, location_name: "DomainName"))
927
964
  UpgradeElasticsearchDomainRequest.add_member(:target_version, Shapes::ShapeRef.new(shape: ElasticsearchVersionString, required: true, location_name: "TargetVersion"))
928
965
  UpgradeElasticsearchDomainRequest.add_member(:perform_check_only, Shapes::ShapeRef.new(shape: Boolean, location_name: "PerformCheckOnly"))
@@ -1297,6 +1334,25 @@ module Aws::ElasticsearchService
1297
1334
  o.errors << Shapes::ShapeRef.new(shape: InternalException)
1298
1335
  end)
1299
1336
 
1337
+ api.add_operation(:get_package_version_history, Seahorse::Model::Operation.new.tap do |o|
1338
+ o.name = "GetPackageVersionHistory"
1339
+ o.http_method = "GET"
1340
+ o.http_request_uri = "/2015-01-01/packages/{PackageID}/history"
1341
+ o.input = Shapes::ShapeRef.new(shape: GetPackageVersionHistoryRequest)
1342
+ o.output = Shapes::ShapeRef.new(shape: GetPackageVersionHistoryResponse)
1343
+ o.errors << Shapes::ShapeRef.new(shape: BaseException)
1344
+ o.errors << Shapes::ShapeRef.new(shape: InternalException)
1345
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1346
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1347
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1348
+ o[:pager] = Aws::Pager.new(
1349
+ limit_key: "max_results",
1350
+ tokens: {
1351
+ "next_token" => "next_token"
1352
+ }
1353
+ )
1354
+ end)
1355
+
1300
1356
  api.add_operation(:get_upgrade_history, Seahorse::Model::Operation.new.tap do |o|
1301
1357
  o.name = "GetUpgradeHistory"
1302
1358
  o.http_method = "GET"
@@ -1486,6 +1542,20 @@ module Aws::ElasticsearchService
1486
1542
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1487
1543
  end)
1488
1544
 
1545
+ api.add_operation(:update_package, Seahorse::Model::Operation.new.tap do |o|
1546
+ o.name = "UpdatePackage"
1547
+ o.http_method = "POST"
1548
+ o.http_request_uri = "/2015-01-01/packages/update"
1549
+ o.input = Shapes::ShapeRef.new(shape: UpdatePackageRequest)
1550
+ o.output = Shapes::ShapeRef.new(shape: UpdatePackageResponse)
1551
+ o.errors << Shapes::ShapeRef.new(shape: BaseException)
1552
+ o.errors << Shapes::ShapeRef.new(shape: InternalException)
1553
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
1554
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1555
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1556
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1557
+ end)
1558
+
1489
1559
  api.add_operation(:upgrade_elasticsearch_domain, Seahorse::Model::Operation.new.tap do |o|
1490
1560
  o.name = "UpgradeElasticsearchDomain"
1491
1561
  o.http_method = "POST"
@@ -1569,6 +1569,9 @@ module Aws::ElasticsearchService
1569
1569
  # ASSOCIATING/ASSOCIATION\_FAILED/ACTIVE/DISSOCIATING/DISSOCIATION\_FAILED.
1570
1570
  # @return [String]
1571
1571
  #
1572
+ # @!attribute [rw] package_version
1573
+ # @return [String]
1574
+ #
1572
1575
  # @!attribute [rw] reference_path
1573
1576
  # The relative path on Amazon ES nodes, which can be used as
1574
1577
  # synonym\_path when the package is synonym file.
@@ -1586,6 +1589,7 @@ module Aws::ElasticsearchService
1586
1589
  :last_updated,
1587
1590
  :domain_name,
1588
1591
  :domain_package_status,
1592
+ :package_version,
1589
1593
  :reference_path,
1590
1594
  :error_details)
1591
1595
  SENSITIVE = []
@@ -2154,6 +2158,61 @@ module Aws::ElasticsearchService
2154
2158
  include Aws::Structure
2155
2159
  end
2156
2160
 
2161
+ # Container for request parameters to ` GetPackageVersionHistory `
2162
+ # operation.
2163
+ #
2164
+ # @note When making an API call, you may pass GetPackageVersionHistoryRequest
2165
+ # data as a hash:
2166
+ #
2167
+ # {
2168
+ # package_id: "PackageID", # required
2169
+ # max_results: 1,
2170
+ # next_token: "NextToken",
2171
+ # }
2172
+ #
2173
+ # @!attribute [rw] package_id
2174
+ # Returns an audit history of versions of the package.
2175
+ # @return [String]
2176
+ #
2177
+ # @!attribute [rw] max_results
2178
+ # Limits results to a maximum number of versions.
2179
+ # @return [Integer]
2180
+ #
2181
+ # @!attribute [rw] next_token
2182
+ # Used for pagination. Only necessary if a previous API call includes
2183
+ # a non-null NextToken value. If provided, returns results for the
2184
+ # next page.
2185
+ # @return [String]
2186
+ #
2187
+ class GetPackageVersionHistoryRequest < Struct.new(
2188
+ :package_id,
2189
+ :max_results,
2190
+ :next_token)
2191
+ SENSITIVE = []
2192
+ include Aws::Structure
2193
+ end
2194
+
2195
+ # Container for response returned by ` GetPackageVersionHistory `
2196
+ # operation.
2197
+ #
2198
+ # @!attribute [rw] package_id
2199
+ # @return [String]
2200
+ #
2201
+ # @!attribute [rw] package_version_history_list
2202
+ # List of `PackageVersionHistory` objects.
2203
+ # @return [Array<Types::PackageVersionHistory>]
2204
+ #
2205
+ # @!attribute [rw] next_token
2206
+ # @return [String]
2207
+ #
2208
+ class GetPackageVersionHistoryResponse < Struct.new(
2209
+ :package_id,
2210
+ :package_version_history_list,
2211
+ :next_token)
2212
+ SENSITIVE = []
2213
+ include Aws::Structure
2214
+ end
2215
+
2157
2216
  # Container for request parameters to ` GetUpgradeHistory ` operation.
2158
2217
  #
2159
2218
  # @note When making an API call, you may pass GetUpgradeHistoryRequest
@@ -2925,6 +2984,12 @@ module Aws::ElasticsearchService
2925
2984
  # Timestamp which tells creation date of the package.
2926
2985
  # @return [Time]
2927
2986
  #
2987
+ # @!attribute [rw] last_updated_at
2988
+ # @return [Time]
2989
+ #
2990
+ # @!attribute [rw] available_package_version
2991
+ # @return [String]
2992
+ #
2928
2993
  # @!attribute [rw] error_details
2929
2994
  # Additional information if the package is in an error state. Null
2930
2995
  # otherwise.
@@ -2937,6 +3002,8 @@ module Aws::ElasticsearchService
2937
3002
  :package_description,
2938
3003
  :package_status,
2939
3004
  :created_at,
3005
+ :last_updated_at,
3006
+ :available_package_version,
2940
3007
  :error_details)
2941
3008
  SENSITIVE = []
2942
3009
  include Aws::Structure
@@ -2968,6 +3035,28 @@ module Aws::ElasticsearchService
2968
3035
  include Aws::Structure
2969
3036
  end
2970
3037
 
3038
+ # Details of a package version.
3039
+ #
3040
+ # @!attribute [rw] package_version
3041
+ # Version of the package.
3042
+ # @return [String]
3043
+ #
3044
+ # @!attribute [rw] commit_message
3045
+ # A message associated with the version.
3046
+ # @return [String]
3047
+ #
3048
+ # @!attribute [rw] created_at
3049
+ # Timestamp which tells creation time of the package version.
3050
+ # @return [Time]
3051
+ #
3052
+ class PackageVersionHistory < Struct.new(
3053
+ :package_version,
3054
+ :commit_message,
3055
+ :created_at)
3056
+ SENSITIVE = []
3057
+ include Aws::Structure
3058
+ end
3059
+
2971
3060
  # Container for parameters to
2972
3061
  # `PurchaseReservedElasticsearchInstanceOffering`
2973
3062
  #
@@ -3754,6 +3843,60 @@ module Aws::ElasticsearchService
3754
3843
  include Aws::Structure
3755
3844
  end
3756
3845
 
3846
+ # Container for request parameters to ` UpdatePackage ` operation.
3847
+ #
3848
+ # @note When making an API call, you may pass UpdatePackageRequest
3849
+ # data as a hash:
3850
+ #
3851
+ # {
3852
+ # package_id: "PackageID", # required
3853
+ # package_source: { # required
3854
+ # s3_bucket_name: "S3BucketName",
3855
+ # s3_key: "S3Key",
3856
+ # },
3857
+ # package_description: "PackageDescription",
3858
+ # commit_message: "CommitMessage",
3859
+ # }
3860
+ #
3861
+ # @!attribute [rw] package_id
3862
+ # Unique identifier for the package.
3863
+ # @return [String]
3864
+ #
3865
+ # @!attribute [rw] package_source
3866
+ # The S3 location for importing the package specified as
3867
+ # `S3BucketName` and `S3Key`
3868
+ # @return [Types::PackageSource]
3869
+ #
3870
+ # @!attribute [rw] package_description
3871
+ # New description of the package.
3872
+ # @return [String]
3873
+ #
3874
+ # @!attribute [rw] commit_message
3875
+ # An info message for the new version which will be shown as part of
3876
+ # `GetPackageVersionHistoryResponse`.
3877
+ # @return [String]
3878
+ #
3879
+ class UpdatePackageRequest < Struct.new(
3880
+ :package_id,
3881
+ :package_source,
3882
+ :package_description,
3883
+ :commit_message)
3884
+ SENSITIVE = []
3885
+ include Aws::Structure
3886
+ end
3887
+
3888
+ # Container for response returned by ` UpdatePackage ` operation.
3889
+ #
3890
+ # @!attribute [rw] package_details
3891
+ # Information about the package `PackageDetails`.
3892
+ # @return [Types::PackageDetails]
3893
+ #
3894
+ class UpdatePackageResponse < Struct.new(
3895
+ :package_details)
3896
+ SENSITIVE = []
3897
+ include Aws::Structure
3898
+ end
3899
+
3757
3900
  # Container for request parameters to ` UpgradeElasticsearchDomain `
3758
3901
  # operation.
3759
3902
  #
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-elasticsearchservice
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.45.0
4
+ version: 1.46.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: 2020-11-05 00:00:00.000000000 Z
11
+ date: 2020-11-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core