aws-sdk-outposts 1.30.0 → 1.31.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: 8542f5294c772206960849ad4c82409e9bcb34fbfccd64bea76cc82805591974
4
- data.tar.gz: 1d8dae55a28241c6f33a25dd035032154d2a7d233cd2ed81e40c4b79a8e36092
3
+ metadata.gz: 582afa419a9696c487662184b0855dc7ef645f433da17bd6fec39468efd5927d
4
+ data.tar.gz: 3b87f274398da1de038ecd7120d3617d58c7813c7acf209db4961a9507a50a55
5
5
  SHA512:
6
- metadata.gz: a17e413380a170573d663b0c5c6fa01d120b2be29ea0bdea9d15b2f5fcb896907b2121e7f8f20e0ab4302ff65a8760073242c7fd04413cdc5cbb4b70644847fc
7
- data.tar.gz: 013f39d298b987355bac707e1774bca47b3049a2cd050255b4028517e6e2ba0ea20ddb72bab2659adf8e0bb49e199211df712f07c99203bd86aefb7a89f7412e
6
+ metadata.gz: 554d946753270d3f3a49d9b5c1cde451be7304ca2338e14ad9d250e34de7b83577a5cb49c720c0d3588b82c1d3e0801716763b89b777a5ea37435179031b4f64
7
+ data.tar.gz: f9f5ac9eb993137a805ce430d5bf96387536abbabef44b343715231fffc8e0040ee5e1d7eff049e5841aaa8a52823e951361e1fd0e66c7036c759d6f8197376e
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.31.0 (2022-05-02)
5
+ ------------------
6
+
7
+ * Feature - This release adds a new API called ListAssets to the Outposts SDK, which lists the hardware assets in an Outpost.
8
+
4
9
  1.30.0 (2022-03-11)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.30.0
1
+ 1.31.0
@@ -776,7 +776,7 @@ module Aws::Outposts
776
776
  req.send_request(options)
777
777
  end
778
778
 
779
- # Lists the instance types for the specified Outpost.
779
+ # Gets the instance types for the specified Outpost.
780
780
  #
781
781
  # @option params [required, String] :outpost_id
782
782
  # The ID or the Amazon Resource Name (ARN) of the Outpost.
@@ -794,6 +794,8 @@ module Aws::Outposts
794
794
  # * {Types::GetOutpostInstanceTypesOutput#outpost_id #outpost_id} => String
795
795
  # * {Types::GetOutpostInstanceTypesOutput#outpost_arn #outpost_arn} => String
796
796
  #
797
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
798
+ #
797
799
  # @example Request syntax with placeholder values
798
800
  #
799
801
  # resp = client.get_outpost_instance_types({
@@ -912,9 +914,64 @@ module Aws::Outposts
912
914
  req.send_request(options)
913
915
  end
914
916
 
915
- # Use to create a list of every item in the catalog. Add filters to your
916
- # request to return a more specific list of results. Use filters to
917
- # match an item class, storage option, or EC2 family.
917
+ # Lists the hardware assets in an Outpost. If you are using Dedicated
918
+ # Hosts on Amazon Web Services Outposts, you can filter your request by
919
+ # host ID to return a list of hardware assets that allocate resources
920
+ # for Dedicated Hosts.
921
+ #
922
+ # @option params [required, String] :outpost_identifier
923
+ # The ID or the Amazon Resource Name (ARN) of the Outpost.
924
+ #
925
+ # @option params [Array<String>] :host_id_filter
926
+ # A filter for the host ID of Dedicated Hosts on the Outpost.
927
+ #
928
+ # Filter values are case sensitive. If you specify multiple values for a
929
+ # filter, the values are joined with an `OR`, and the request returns
930
+ # all results that match any of the specified values.
931
+ #
932
+ # @option params [Integer] :max_results
933
+ # The maximum page size.
934
+ #
935
+ # @option params [String] :next_token
936
+ # The pagination token.
937
+ #
938
+ # @return [Types::ListAssetsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
939
+ #
940
+ # * {Types::ListAssetsOutput#assets #assets} => Array&lt;Types::AssetInfo&gt;
941
+ # * {Types::ListAssetsOutput#next_token #next_token} => String
942
+ #
943
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
944
+ #
945
+ # @example Request syntax with placeholder values
946
+ #
947
+ # resp = client.list_assets({
948
+ # outpost_identifier: "OutpostIdentifier", # required
949
+ # host_id_filter: ["HostId"],
950
+ # max_results: 1,
951
+ # next_token: "Token",
952
+ # })
953
+ #
954
+ # @example Response structure
955
+ #
956
+ # resp.assets #=> Array
957
+ # resp.assets[0].asset_id #=> String
958
+ # resp.assets[0].rack_id #=> String
959
+ # resp.assets[0].asset_type #=> String, one of "COMPUTE"
960
+ # resp.assets[0].compute_attributes.host_id #=> String
961
+ # resp.next_token #=> String
962
+ #
963
+ # @see http://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/ListAssets AWS API Documentation
964
+ #
965
+ # @overload list_assets(params = {})
966
+ # @param [Hash] params ({})
967
+ def list_assets(params = {}, options = {})
968
+ req = build_request(:list_assets, params)
969
+ req.send_request(options)
970
+ end
971
+
972
+ # Lists the items in the catalog. Add filters to your request to return
973
+ # a more specific list of results. Use filters to match an item class,
974
+ # storage option, or EC2 family.
918
975
  #
919
976
  # If you specify multiple filters, the filters are joined with an `AND`,
920
977
  # and the request returns only results that match all of the specified
@@ -990,9 +1047,9 @@ module Aws::Outposts
990
1047
  req.send_request(options)
991
1048
  end
992
1049
 
993
- # Create a list of the Outpost orders for your Amazon Web Services
994
- # account. You can filter your request by Outpost to return a more
995
- # specific list of results.
1050
+ # Lists the Outpost orders for your Amazon Web Services account. You can
1051
+ # filter your request by Outpost to return a more specific list of
1052
+ # results.
996
1053
  #
997
1054
  # @option params [String] :outpost_identifier_filter
998
1055
  # The ID or the Amazon Resource Name (ARN) of the Outpost.
@@ -1040,9 +1097,9 @@ module Aws::Outposts
1040
1097
  req.send_request(options)
1041
1098
  end
1042
1099
 
1043
- # Create a list of the Outposts for your Amazon Web Services account.
1044
- # Add filters to your request to return a more specific list of results.
1045
- # Use filters to match an Outpost lifecycle status, Availability Zone
1100
+ # Lists the Outposts for your Amazon Web Services account. Add filters
1101
+ # to your request to return a more specific list of results. Use filters
1102
+ # to match an Outpost lifecycle status, Availability Zone
1046
1103
  # (`us-east-1a`), and AZ ID (`use1-az1`).
1047
1104
  #
1048
1105
  # If you specify multiple filters, the filters are joined with an `AND`,
@@ -1120,10 +1177,10 @@ module Aws::Outposts
1120
1177
  req.send_request(options)
1121
1178
  end
1122
1179
 
1123
- # Create a list of the Outpost sites for your Amazon Web Services
1124
- # account. Add operating address filters to your request to return a
1125
- # more specific list of results. Use filters to match site city, country
1126
- # code, or state/region of the operating address.
1180
+ # Lists the Outpost sites for your Amazon Web Services account. Add
1181
+ # operating address filters to your request to return a more specific
1182
+ # list of results. Use filters to match site city, country code, or
1183
+ # state/region of the operating address.
1127
1184
  #
1128
1185
  # If you specify multiple filters, the filters are joined with an `AND`,
1129
1186
  # and the request returns only results that match all of the specified
@@ -1641,7 +1698,7 @@ module Aws::Outposts
1641
1698
  params: params,
1642
1699
  config: config)
1643
1700
  context[:gem_name] = 'aws-sdk-outposts'
1644
- context[:gem_version] = '1.30.0'
1701
+ context[:gem_version] = '1.31.0'
1645
1702
  Seahorse::Client::Request.new(handlers, context)
1646
1703
  end
1647
1704
 
@@ -21,6 +21,10 @@ module Aws::Outposts
21
21
  AddressLine3 = Shapes::StringShape.new(name: 'AddressLine3')
22
22
  AddressType = Shapes::StringShape.new(name: 'AddressType')
23
23
  Arn = Shapes::StringShape.new(name: 'Arn')
24
+ AssetId = Shapes::StringShape.new(name: 'AssetId')
25
+ AssetInfo = Shapes::StructureShape.new(name: 'AssetInfo')
26
+ AssetListDefinition = Shapes::ListShape.new(name: 'AssetListDefinition')
27
+ AssetType = Shapes::StringShape.new(name: 'AssetType')
24
28
  AvailabilityZone = Shapes::StringShape.new(name: 'AvailabilityZone')
25
29
  AvailabilityZoneId = Shapes::StringShape.new(name: 'AvailabilityZoneId')
26
30
  AvailabilityZoneIdList = Shapes::ListShape.new(name: 'AvailabilityZoneIdList')
@@ -36,6 +40,7 @@ module Aws::Outposts
36
40
  CatalogItemWeightLbs = Shapes::IntegerShape.new(name: 'CatalogItemWeightLbs')
37
41
  City = Shapes::StringShape.new(name: 'City')
38
42
  CityList = Shapes::ListShape.new(name: 'CityList')
43
+ ComputeAttributes = Shapes::StructureShape.new(name: 'ComputeAttributes')
39
44
  ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
40
45
  ContactName = Shapes::StringShape.new(name: 'ContactName')
41
46
  ContactPhoneNumber = Shapes::StringShape.new(name: 'ContactPhoneNumber')
@@ -70,6 +75,8 @@ module Aws::Outposts
70
75
  GetSiteAddressOutput = Shapes::StructureShape.new(name: 'GetSiteAddressOutput')
71
76
  GetSiteInput = Shapes::StructureShape.new(name: 'GetSiteInput')
72
77
  GetSiteOutput = Shapes::StructureShape.new(name: 'GetSiteOutput')
78
+ HostId = Shapes::StringShape.new(name: 'HostId')
79
+ HostIdList = Shapes::ListShape.new(name: 'HostIdList')
73
80
  ISO8601Timestamp = Shapes::TimestampShape.new(name: 'ISO8601Timestamp')
74
81
  InstanceType = Shapes::StringShape.new(name: 'InstanceType')
75
82
  InstanceTypeItem = Shapes::StructureShape.new(name: 'InstanceTypeItem')
@@ -85,6 +92,8 @@ module Aws::Outposts
85
92
  LineItemRequestListDefinition = Shapes::ListShape.new(name: 'LineItemRequestListDefinition')
86
93
  LineItemStatus = Shapes::StringShape.new(name: 'LineItemStatus')
87
94
  LineItemStatusCounts = Shapes::MapShape.new(name: 'LineItemStatusCounts')
95
+ ListAssetsInput = Shapes::StructureShape.new(name: 'ListAssetsInput')
96
+ ListAssetsOutput = Shapes::StructureShape.new(name: 'ListAssetsOutput')
88
97
  ListCatalogItemsInput = Shapes::StructureShape.new(name: 'ListCatalogItemsInput')
89
98
  ListCatalogItemsOutput = Shapes::StructureShape.new(name: 'ListCatalogItemsOutput')
90
99
  ListOrdersInput = Shapes::StructureShape.new(name: 'ListOrdersInput')
@@ -123,6 +132,7 @@ module Aws::Outposts
123
132
  PowerFeedDrop = Shapes::StringShape.new(name: 'PowerFeedDrop')
124
133
  PowerPhase = Shapes::StringShape.new(name: 'PowerPhase')
125
134
  Quantity = Shapes::StringShape.new(name: 'Quantity')
135
+ RackId = Shapes::StringShape.new(name: 'RackId')
126
136
  RackPhysicalProperties = Shapes::StructureShape.new(name: 'RackPhysicalProperties')
127
137
  ResourceType = Shapes::StringShape.new(name: 'ResourceType')
128
138
  ServiceQuotaExceededException = Shapes::StructureShape.new(name: 'ServiceQuotaExceededException')
@@ -180,6 +190,14 @@ module Aws::Outposts
180
190
  Address.add_member(:municipality, Shapes::ShapeRef.new(shape: Municipality, location_name: "Municipality"))
181
191
  Address.struct_class = Types::Address
182
192
 
193
+ AssetInfo.add_member(:asset_id, Shapes::ShapeRef.new(shape: AssetId, location_name: "AssetId"))
194
+ AssetInfo.add_member(:rack_id, Shapes::ShapeRef.new(shape: RackId, location_name: "RackId"))
195
+ AssetInfo.add_member(:asset_type, Shapes::ShapeRef.new(shape: AssetType, location_name: "AssetType"))
196
+ AssetInfo.add_member(:compute_attributes, Shapes::ShapeRef.new(shape: ComputeAttributes, location_name: "ComputeAttributes"))
197
+ AssetInfo.struct_class = Types::AssetInfo
198
+
199
+ AssetListDefinition.member = Shapes::ShapeRef.new(shape: AssetInfo)
200
+
183
201
  AvailabilityZoneIdList.member = Shapes::ShapeRef.new(shape: AvailabilityZoneId)
184
202
 
185
203
  AvailabilityZoneList.member = Shapes::ShapeRef.new(shape: AvailabilityZone)
@@ -204,6 +222,9 @@ module Aws::Outposts
204
222
 
205
223
  CityList.member = Shapes::ShapeRef.new(shape: City)
206
224
 
225
+ ComputeAttributes.add_member(:host_id, Shapes::ShapeRef.new(shape: HostId, location_name: "HostId"))
226
+ ComputeAttributes.struct_class = Types::ComputeAttributes
227
+
207
228
  ConflictException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
208
229
  ConflictException.add_member(:resource_id, Shapes::ShapeRef.new(shape: String, location_name: "ResourceId"))
209
230
  ConflictException.add_member(:resource_type, Shapes::ShapeRef.new(shape: ResourceType, location_name: "ResourceType"))
@@ -307,6 +328,8 @@ module Aws::Outposts
307
328
  GetSiteOutput.add_member(:site, Shapes::ShapeRef.new(shape: Site, location_name: "Site"))
308
329
  GetSiteOutput.struct_class = Types::GetSiteOutput
309
330
 
331
+ HostIdList.member = Shapes::ShapeRef.new(shape: HostId)
332
+
310
333
  InstanceTypeItem.add_member(:instance_type, Shapes::ShapeRef.new(shape: InstanceType, location_name: "InstanceType"))
311
334
  InstanceTypeItem.struct_class = Types::InstanceTypeItem
312
335
 
@@ -334,6 +357,16 @@ module Aws::Outposts
334
357
  LineItemStatusCounts.key = Shapes::ShapeRef.new(shape: LineItemStatus)
335
358
  LineItemStatusCounts.value = Shapes::ShapeRef.new(shape: LineItemQuantity)
336
359
 
360
+ ListAssetsInput.add_member(:outpost_identifier, Shapes::ShapeRef.new(shape: OutpostIdentifier, required: true, location: "uri", location_name: "OutpostId"))
361
+ ListAssetsInput.add_member(:host_id_filter, Shapes::ShapeRef.new(shape: HostIdList, location: "querystring", location_name: "HostIdFilter"))
362
+ ListAssetsInput.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults1000, location: "querystring", location_name: "MaxResults"))
363
+ ListAssetsInput.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location: "querystring", location_name: "NextToken"))
364
+ ListAssetsInput.struct_class = Types::ListAssetsInput
365
+
366
+ ListAssetsOutput.add_member(:assets, Shapes::ShapeRef.new(shape: AssetListDefinition, location_name: "Assets"))
367
+ ListAssetsOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location_name: "NextToken"))
368
+ ListAssetsOutput.struct_class = Types::ListAssetsOutput
369
+
337
370
  ListCatalogItemsInput.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location: "querystring", location_name: "NextToken"))
338
371
  ListCatalogItemsInput.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults1000, location: "querystring", location_name: "MaxResults"))
339
372
  ListCatalogItemsInput.add_member(:item_class_filter, Shapes::ShapeRef.new(shape: CatalogItemClassList, location: "querystring", location_name: "ItemClassFilter"))
@@ -661,6 +694,12 @@ module Aws::Outposts
661
694
  o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
662
695
  o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
663
696
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
697
+ o[:pager] = Aws::Pager.new(
698
+ limit_key: "max_results",
699
+ tokens: {
700
+ "next_token" => "next_token"
701
+ }
702
+ )
664
703
  end)
665
704
 
666
705
  api.add_operation(:get_site, Seahorse::Model::Operation.new.tap do |o|
@@ -687,6 +726,24 @@ module Aws::Outposts
687
726
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
688
727
  end)
689
728
 
729
+ api.add_operation(:list_assets, Seahorse::Model::Operation.new.tap do |o|
730
+ o.name = "ListAssets"
731
+ o.http_method = "GET"
732
+ o.http_request_uri = "/outposts/{OutpostId}/assets"
733
+ o.input = Shapes::ShapeRef.new(shape: ListAssetsInput)
734
+ o.output = Shapes::ShapeRef.new(shape: ListAssetsOutput)
735
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
736
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
737
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
738
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
739
+ o[:pager] = Aws::Pager.new(
740
+ limit_key: "max_results",
741
+ tokens: {
742
+ "next_token" => "next_token"
743
+ }
744
+ )
745
+ end)
746
+
690
747
  api.add_operation(:list_catalog_items, Seahorse::Model::Operation.new.tap do |o|
691
748
  o.name = "ListCatalogItems"
692
749
  o.http_method = "GET"
@@ -104,6 +104,35 @@ module Aws::Outposts
104
104
  include Aws::Structure
105
105
  end
106
106
 
107
+ # Information about hardware assets.
108
+ #
109
+ # @!attribute [rw] asset_id
110
+ # The ID of the asset.
111
+ # @return [String]
112
+ #
113
+ # @!attribute [rw] rack_id
114
+ # The rack ID of the asset.
115
+ # @return [String]
116
+ #
117
+ # @!attribute [rw] asset_type
118
+ # The type of the asset.
119
+ # @return [String]
120
+ #
121
+ # @!attribute [rw] compute_attributes
122
+ # Information about compute hardware assets.
123
+ # @return [Types::ComputeAttributes]
124
+ #
125
+ # @see http://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/AssetInfo AWS API Documentation
126
+ #
127
+ class AssetInfo < Struct.new(
128
+ :asset_id,
129
+ :rack_id,
130
+ :asset_type,
131
+ :compute_attributes)
132
+ SENSITIVE = []
133
+ include Aws::Structure
134
+ end
135
+
107
136
  # @note When making an API call, you may pass CancelOrderInput
108
137
  # data as a hash:
109
138
  #
@@ -172,6 +201,20 @@ module Aws::Outposts
172
201
  include Aws::Structure
173
202
  end
174
203
 
204
+ # Information about compute hardware assets.
205
+ #
206
+ # @!attribute [rw] host_id
207
+ # The host ID of any Dedicated Hosts on the asset.
208
+ # @return [String]
209
+ #
210
+ # @see http://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/ComputeAttributes AWS API Documentation
211
+ #
212
+ class ComputeAttributes < Struct.new(
213
+ :host_id)
214
+ SENSITIVE = []
215
+ include Aws::Structure
216
+ end
217
+
175
218
  # Updating or deleting this resource can cause an inconsistent state.
176
219
  #
177
220
  # @!attribute [rw] message
@@ -815,6 +858,64 @@ module Aws::Outposts
815
858
  include Aws::Structure
816
859
  end
817
860
 
861
+ # @note When making an API call, you may pass ListAssetsInput
862
+ # data as a hash:
863
+ #
864
+ # {
865
+ # outpost_identifier: "OutpostIdentifier", # required
866
+ # host_id_filter: ["HostId"],
867
+ # max_results: 1,
868
+ # next_token: "Token",
869
+ # }
870
+ #
871
+ # @!attribute [rw] outpost_identifier
872
+ # The ID or the Amazon Resource Name (ARN) of the Outpost.
873
+ # @return [String]
874
+ #
875
+ # @!attribute [rw] host_id_filter
876
+ # A filter for the host ID of Dedicated Hosts on the Outpost.
877
+ #
878
+ # Filter values are case sensitive. If you specify multiple values for
879
+ # a filter, the values are joined with an `OR`, and the request
880
+ # returns all results that match any of the specified values.
881
+ # @return [Array<String>]
882
+ #
883
+ # @!attribute [rw] max_results
884
+ # The maximum page size.
885
+ # @return [Integer]
886
+ #
887
+ # @!attribute [rw] next_token
888
+ # The pagination token.
889
+ # @return [String]
890
+ #
891
+ # @see http://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/ListAssetsInput AWS API Documentation
892
+ #
893
+ class ListAssetsInput < Struct.new(
894
+ :outpost_identifier,
895
+ :host_id_filter,
896
+ :max_results,
897
+ :next_token)
898
+ SENSITIVE = []
899
+ include Aws::Structure
900
+ end
901
+
902
+ # @!attribute [rw] assets
903
+ # Information about hardware assets.
904
+ # @return [Array<Types::AssetInfo>]
905
+ #
906
+ # @!attribute [rw] next_token
907
+ # The pagination token.
908
+ # @return [String]
909
+ #
910
+ # @see http://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/ListAssetsOutput AWS API Documentation
911
+ #
912
+ class ListAssetsOutput < Struct.new(
913
+ :assets,
914
+ :next_token)
915
+ SENSITIVE = []
916
+ include Aws::Structure
917
+ end
918
+
818
919
  # @note When making an API call, you may pass ListCatalogItemsInput
819
920
  # data as a hash:
820
921
  #
@@ -48,6 +48,6 @@ require_relative 'aws-sdk-outposts/customizations'
48
48
  # @!group service
49
49
  module Aws::Outposts
50
50
 
51
- GEM_VERSION = '1.30.0'
51
+ GEM_VERSION = '1.31.0'
52
52
 
53
53
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-outposts
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.30.0
4
+ version: 1.31.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-03-11 00:00:00.000000000 Z
11
+ date: 2022-05-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core