aws-sdk-outposts 1.20.0 → 1.21.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: a162597e0f5f368c229fd0a4502b5b84f4932d3c2c9762978fab13db8f844656
4
- data.tar.gz: 4ebe71edeac36242bb2f2dfbfea463d50b4b578ff51bf3baeb069e4bb5e128fe
3
+ metadata.gz: 99001964f3c985b60a3941215270a506358efb14d98d250b3a6320340f4f1cd1
4
+ data.tar.gz: 50bf76412ae8c57c60459ce189326df4e97d13bb7af63ea3b06e388c4907e07b
5
5
  SHA512:
6
- metadata.gz: c50d901a578bff995bbbf7305eedb5b78ff1b7fe111c54dc07cd7f4f97342607ecaee730ede808bba646cf139298b1aa6ece09403cc574f58c57659aeb38005d
7
- data.tar.gz: 04be959e7ac70014d797ff552746030b2866c2848e2b408925a4127406fce964219e447fbd41728b8dbb734ba363c1c699bfc8231786e9e069534a401dae3fd9
6
+ metadata.gz: ea2e0910950f09101fe64cbd26722e2bd632403f2fd8f5fcb56845842cf7ad034ffb0f43871ea09f01ca29a6ff68b501b8717642a47fca427938a48ac992c6ea
7
+ data.tar.gz: db652df66add86bb1ab7f18b0cf157e316d141cee8e7e54137af56741bbc0216a5d72a8b6a54beb7c3dc96b939228aff96748cccf755c244708286ebb7f1a195
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.21.0 (2021-09-03)
5
+ ------------------
6
+
7
+ * Feature - This release adds a new API CreateOrder.
8
+
4
9
  1.20.0 (2021-09-01)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.20.0
1
+ 1.21.0
@@ -327,6 +327,61 @@ module Aws::Outposts
327
327
 
328
328
  # @!group API Operations
329
329
 
330
+ # Creates an order for an Outpost.
331
+ #
332
+ # @option params [required, String] :outpost_identifier
333
+ # The ID or the Amazon Resource Name (ARN) of the Outpost.
334
+ #
335
+ # @option params [required, Array<Types::LineItemRequest>] :line_items
336
+ # The line items that make up the order.
337
+ #
338
+ # @option params [required, String] :payment_option
339
+ # The payment option for the order.
340
+ #
341
+ # @option params [String] :payment_term
342
+ # The payment terms for the order.
343
+ #
344
+ # @return [Types::CreateOrderOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
345
+ #
346
+ # * {Types::CreateOrderOutput#order #order} => Types::Order
347
+ #
348
+ # @example Request syntax with placeholder values
349
+ #
350
+ # resp = client.create_order({
351
+ # outpost_identifier: "OutpostIdentifier", # required
352
+ # line_items: [ # required
353
+ # {
354
+ # catalog_item_id: "SkuCode",
355
+ # quantity: 1,
356
+ # },
357
+ # ],
358
+ # payment_option: "ALL_UPFRONT", # required, accepts ALL_UPFRONT, NO_UPFRONT, PARTIAL_UPFRONT
359
+ # payment_term: "THREE_YEARS", # accepts THREE_YEARS
360
+ # })
361
+ #
362
+ # @example Response structure
363
+ #
364
+ # resp.order.outpost_id #=> String
365
+ # resp.order.order_id #=> String
366
+ # resp.order.status #=> String, one of "RECEIVED", "PENDING", "PROCESSING", "INSTALLING", "FULFILLED", "CANCELLED"
367
+ # resp.order.line_items #=> Array
368
+ # resp.order.line_items[0].catalog_item_id #=> String
369
+ # resp.order.line_items[0].line_item_id #=> String
370
+ # resp.order.line_items[0].quantity #=> Integer
371
+ # resp.order.line_items[0].status #=> String
372
+ # resp.order.payment_option #=> String, one of "ALL_UPFRONT", "NO_UPFRONT", "PARTIAL_UPFRONT"
373
+ # resp.order.order_submission_date #=> Time
374
+ # resp.order.order_fulfilled_date #=> Time
375
+ #
376
+ # @see http://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/CreateOrder AWS API Documentation
377
+ #
378
+ # @overload create_order(params = {})
379
+ # @param [Hash] params ({})
380
+ def create_order(params = {}, options = {})
381
+ req = build_request(:create_order, params)
382
+ req.send_request(options)
383
+ end
384
+
330
385
  # Creates an Outpost.
331
386
  #
332
387
  # You can specify `AvailabilityZone` or `AvailabilityZoneId`.
@@ -734,7 +789,7 @@ module Aws::Outposts
734
789
  params: params,
735
790
  config: config)
736
791
  context[:gem_name] = 'aws-sdk-outposts'
737
- context[:gem_version] = '1.20.0'
792
+ context[:gem_version] = '1.21.0'
738
793
  Seahorse::Client::Request.new(handlers, context)
739
794
  end
740
795
 
@@ -21,6 +21,8 @@ module Aws::Outposts
21
21
  AvailabilityZoneIdList = Shapes::ListShape.new(name: 'AvailabilityZoneIdList')
22
22
  AvailabilityZoneList = Shapes::ListShape.new(name: 'AvailabilityZoneList')
23
23
  ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
24
+ CreateOrderInput = Shapes::StructureShape.new(name: 'CreateOrderInput')
25
+ CreateOrderOutput = Shapes::StructureShape.new(name: 'CreateOrderOutput')
24
26
  CreateOutpostInput = Shapes::StructureShape.new(name: 'CreateOutpostInput')
25
27
  CreateOutpostOutput = Shapes::StructureShape.new(name: 'CreateOutpostOutput')
26
28
  DeleteOutpostInput = Shapes::StructureShape.new(name: 'DeleteOutpostInput')
@@ -32,12 +34,19 @@ module Aws::Outposts
32
34
  GetOutpostInstanceTypesInput = Shapes::StructureShape.new(name: 'GetOutpostInstanceTypesInput')
33
35
  GetOutpostInstanceTypesOutput = Shapes::StructureShape.new(name: 'GetOutpostInstanceTypesOutput')
34
36
  GetOutpostOutput = Shapes::StructureShape.new(name: 'GetOutpostOutput')
37
+ ISO8601Timestamp = Shapes::TimestampShape.new(name: 'ISO8601Timestamp')
35
38
  InstanceType = Shapes::StringShape.new(name: 'InstanceType')
36
39
  InstanceTypeItem = Shapes::StructureShape.new(name: 'InstanceTypeItem')
37
40
  InstanceTypeListDefinition = Shapes::ListShape.new(name: 'InstanceTypeListDefinition')
38
41
  InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
39
42
  LifeCycleStatus = Shapes::StringShape.new(name: 'LifeCycleStatus')
40
43
  LifeCycleStatusList = Shapes::ListShape.new(name: 'LifeCycleStatusList')
44
+ LineItem = Shapes::StructureShape.new(name: 'LineItem')
45
+ LineItemId = Shapes::StringShape.new(name: 'LineItemId')
46
+ LineItemListDefinition = Shapes::ListShape.new(name: 'LineItemListDefinition')
47
+ LineItemQuantity = Shapes::IntegerShape.new(name: 'LineItemQuantity')
48
+ LineItemRequest = Shapes::StructureShape.new(name: 'LineItemRequest')
49
+ LineItemRequestListDefinition = Shapes::ListShape.new(name: 'LineItemRequestListDefinition')
41
50
  ListOutpostsInput = Shapes::StructureShape.new(name: 'ListOutpostsInput')
42
51
  ListOutpostsOutput = Shapes::StructureShape.new(name: 'ListOutpostsOutput')
43
52
  ListSitesInput = Shapes::StructureShape.new(name: 'ListSitesInput')
@@ -46,12 +55,19 @@ module Aws::Outposts
46
55
  ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
47
56
  MaxResults1000 = Shapes::IntegerShape.new(name: 'MaxResults1000')
48
57
  NotFoundException = Shapes::StructureShape.new(name: 'NotFoundException')
58
+ Order = Shapes::StructureShape.new(name: 'Order')
59
+ OrderId = Shapes::StringShape.new(name: 'OrderId')
60
+ OrderStatus = Shapes::StringShape.new(name: 'OrderStatus')
49
61
  Outpost = Shapes::StructureShape.new(name: 'Outpost')
50
62
  OutpostArn = Shapes::StringShape.new(name: 'OutpostArn')
51
63
  OutpostDescription = Shapes::StringShape.new(name: 'OutpostDescription')
52
64
  OutpostId = Shapes::StringShape.new(name: 'OutpostId')
65
+ OutpostIdOnly = Shapes::StringShape.new(name: 'OutpostIdOnly')
66
+ OutpostIdentifier = Shapes::StringShape.new(name: 'OutpostIdentifier')
53
67
  OutpostName = Shapes::StringShape.new(name: 'OutpostName')
54
68
  OwnerId = Shapes::StringShape.new(name: 'OwnerId')
69
+ PaymentOption = Shapes::StringShape.new(name: 'PaymentOption')
70
+ PaymentTerm = Shapes::StringShape.new(name: 'PaymentTerm')
55
71
  ResourceType = Shapes::StringShape.new(name: 'ResourceType')
56
72
  ServiceQuotaExceededException = Shapes::StructureShape.new(name: 'ServiceQuotaExceededException')
57
73
  Site = Shapes::StructureShape.new(name: 'Site')
@@ -59,6 +75,8 @@ module Aws::Outposts
59
75
  SiteDescription = Shapes::StringShape.new(name: 'SiteDescription')
60
76
  SiteId = Shapes::StringShape.new(name: 'SiteId')
61
77
  SiteName = Shapes::StringShape.new(name: 'SiteName')
78
+ SkuCode = Shapes::StringShape.new(name: 'SkuCode')
79
+ Status = Shapes::StringShape.new(name: 'Status')
62
80
  String = Shapes::StringShape.new(name: 'String')
63
81
  TagKey = Shapes::StringShape.new(name: 'TagKey')
64
82
  TagKeyList = Shapes::ListShape.new(name: 'TagKeyList')
@@ -85,6 +103,15 @@ module Aws::Outposts
85
103
  ConflictException.add_member(:resource_type, Shapes::ShapeRef.new(shape: ResourceType, location_name: "ResourceType"))
86
104
  ConflictException.struct_class = Types::ConflictException
87
105
 
106
+ CreateOrderInput.add_member(:outpost_identifier, Shapes::ShapeRef.new(shape: OutpostIdentifier, required: true, location_name: "OutpostIdentifier"))
107
+ CreateOrderInput.add_member(:line_items, Shapes::ShapeRef.new(shape: LineItemRequestListDefinition, required: true, location_name: "LineItems"))
108
+ CreateOrderInput.add_member(:payment_option, Shapes::ShapeRef.new(shape: PaymentOption, required: true, location_name: "PaymentOption"))
109
+ CreateOrderInput.add_member(:payment_term, Shapes::ShapeRef.new(shape: PaymentTerm, location_name: "PaymentTerm"))
110
+ CreateOrderInput.struct_class = Types::CreateOrderInput
111
+
112
+ CreateOrderOutput.add_member(:order, Shapes::ShapeRef.new(shape: Order, location_name: "Order"))
113
+ CreateOrderOutput.struct_class = Types::CreateOrderOutput
114
+
88
115
  CreateOutpostInput.add_member(:name, Shapes::ShapeRef.new(shape: OutpostName, required: true, location_name: "Name"))
89
116
  CreateOutpostInput.add_member(:description, Shapes::ShapeRef.new(shape: OutpostDescription, location_name: "Description"))
90
117
  CreateOutpostInput.add_member(:site_id, Shapes::ShapeRef.new(shape: SiteId, required: true, location_name: "SiteId"))
@@ -133,6 +160,20 @@ module Aws::Outposts
133
160
 
134
161
  LifeCycleStatusList.member = Shapes::ShapeRef.new(shape: LifeCycleStatus)
135
162
 
163
+ LineItem.add_member(:catalog_item_id, Shapes::ShapeRef.new(shape: SkuCode, location_name: "CatalogItemId"))
164
+ LineItem.add_member(:line_item_id, Shapes::ShapeRef.new(shape: LineItemId, location_name: "LineItemId"))
165
+ LineItem.add_member(:quantity, Shapes::ShapeRef.new(shape: LineItemQuantity, location_name: "Quantity"))
166
+ LineItem.add_member(:status, Shapes::ShapeRef.new(shape: Status, location_name: "Status"))
167
+ LineItem.struct_class = Types::LineItem
168
+
169
+ LineItemListDefinition.member = Shapes::ShapeRef.new(shape: LineItem)
170
+
171
+ LineItemRequest.add_member(:catalog_item_id, Shapes::ShapeRef.new(shape: SkuCode, location_name: "CatalogItemId"))
172
+ LineItemRequest.add_member(:quantity, Shapes::ShapeRef.new(shape: LineItemQuantity, location_name: "Quantity"))
173
+ LineItemRequest.struct_class = Types::LineItemRequest
174
+
175
+ LineItemRequestListDefinition.member = Shapes::ShapeRef.new(shape: LineItemRequest)
176
+
136
177
  ListOutpostsInput.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location: "querystring", location_name: "NextToken"))
137
178
  ListOutpostsInput.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults1000, location: "querystring", location_name: "MaxResults"))
138
179
  ListOutpostsInput.add_member(:life_cycle_status_filter, Shapes::ShapeRef.new(shape: LifeCycleStatusList, location: "querystring", location_name: "LifeCycleStatusFilter"))
@@ -161,6 +202,15 @@ module Aws::Outposts
161
202
  NotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
162
203
  NotFoundException.struct_class = Types::NotFoundException
163
204
 
205
+ Order.add_member(:outpost_id, Shapes::ShapeRef.new(shape: OutpostIdOnly, location_name: "OutpostId"))
206
+ Order.add_member(:order_id, Shapes::ShapeRef.new(shape: OrderId, location_name: "OrderId"))
207
+ Order.add_member(:status, Shapes::ShapeRef.new(shape: OrderStatus, location_name: "Status"))
208
+ Order.add_member(:line_items, Shapes::ShapeRef.new(shape: LineItemListDefinition, location_name: "LineItems"))
209
+ Order.add_member(:payment_option, Shapes::ShapeRef.new(shape: PaymentOption, location_name: "PaymentOption"))
210
+ Order.add_member(:order_submission_date, Shapes::ShapeRef.new(shape: ISO8601Timestamp, location_name: "OrderSubmissionDate"))
211
+ Order.add_member(:order_fulfilled_date, Shapes::ShapeRef.new(shape: ISO8601Timestamp, location_name: "OrderFulfilledDate"))
212
+ Order.struct_class = Types::Order
213
+
164
214
  Outpost.add_member(:outpost_id, Shapes::ShapeRef.new(shape: OutpostId, location_name: "OutpostId"))
165
215
  Outpost.add_member(:owner_id, Shapes::ShapeRef.new(shape: OwnerId, location_name: "OwnerId"))
166
216
  Outpost.add_member(:outpost_arn, Shapes::ShapeRef.new(shape: OutpostArn, location_name: "OutpostArn"))
@@ -228,6 +278,20 @@ module Aws::Outposts
228
278
  "uid" => "outposts-2019-12-03",
229
279
  }
230
280
 
281
+ api.add_operation(:create_order, Seahorse::Model::Operation.new.tap do |o|
282
+ o.name = "CreateOrder"
283
+ o.http_method = "POST"
284
+ o.http_request_uri = "/orders"
285
+ o.input = Shapes::ShapeRef.new(shape: CreateOrderInput)
286
+ o.output = Shapes::ShapeRef.new(shape: CreateOrderOutput)
287
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
288
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
289
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
290
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
291
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
292
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
293
+ end)
294
+
231
295
  api.add_operation(:create_outpost, Seahorse::Model::Operation.new.tap do |o|
232
296
  o.name = "CreateOutpost"
233
297
  o.http_method = "POST"
@@ -46,6 +46,60 @@ module Aws::Outposts
46
46
  include Aws::Structure
47
47
  end
48
48
 
49
+ # @note When making an API call, you may pass CreateOrderInput
50
+ # data as a hash:
51
+ #
52
+ # {
53
+ # outpost_identifier: "OutpostIdentifier", # required
54
+ # line_items: [ # required
55
+ # {
56
+ # catalog_item_id: "SkuCode",
57
+ # quantity: 1,
58
+ # },
59
+ # ],
60
+ # payment_option: "ALL_UPFRONT", # required, accepts ALL_UPFRONT, NO_UPFRONT, PARTIAL_UPFRONT
61
+ # payment_term: "THREE_YEARS", # accepts THREE_YEARS
62
+ # }
63
+ #
64
+ # @!attribute [rw] outpost_identifier
65
+ # The ID or the Amazon Resource Name (ARN) of the Outpost.
66
+ # @return [String]
67
+ #
68
+ # @!attribute [rw] line_items
69
+ # The line items that make up the order.
70
+ # @return [Array<Types::LineItemRequest>]
71
+ #
72
+ # @!attribute [rw] payment_option
73
+ # The payment option for the order.
74
+ # @return [String]
75
+ #
76
+ # @!attribute [rw] payment_term
77
+ # The payment terms for the order.
78
+ # @return [String]
79
+ #
80
+ # @see http://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/CreateOrderInput AWS API Documentation
81
+ #
82
+ class CreateOrderInput < Struct.new(
83
+ :outpost_identifier,
84
+ :line_items,
85
+ :payment_option,
86
+ :payment_term)
87
+ SENSITIVE = []
88
+ include Aws::Structure
89
+ end
90
+
91
+ # @!attribute [rw] order
92
+ # Information about this order.
93
+ # @return [Types::Order]
94
+ #
95
+ # @see http://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/CreateOrderOutput AWS API Documentation
96
+ #
97
+ class CreateOrderOutput < Struct.new(
98
+ :order)
99
+ SENSITIVE = []
100
+ include Aws::Structure
101
+ end
102
+
49
103
  # @note When making an API call, you may pass CreateOutpostInput
50
104
  # data as a hash:
51
105
  #
@@ -271,6 +325,62 @@ module Aws::Outposts
271
325
  include Aws::Structure
272
326
  end
273
327
 
328
+ # Information about a line item.
329
+ #
330
+ # @!attribute [rw] catalog_item_id
331
+ # The ID of the catalog item.
332
+ # @return [String]
333
+ #
334
+ # @!attribute [rw] line_item_id
335
+ # The ID of the line item.
336
+ # @return [String]
337
+ #
338
+ # @!attribute [rw] quantity
339
+ # The quantity of the line item.
340
+ # @return [Integer]
341
+ #
342
+ # @!attribute [rw] status
343
+ # The status of the line item.
344
+ # @return [String]
345
+ #
346
+ # @see http://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/LineItem AWS API Documentation
347
+ #
348
+ class LineItem < Struct.new(
349
+ :catalog_item_id,
350
+ :line_item_id,
351
+ :quantity,
352
+ :status)
353
+ SENSITIVE = []
354
+ include Aws::Structure
355
+ end
356
+
357
+ # Information about a line item request.
358
+ #
359
+ # @note When making an API call, you may pass LineItemRequest
360
+ # data as a hash:
361
+ #
362
+ # {
363
+ # catalog_item_id: "SkuCode",
364
+ # quantity: 1,
365
+ # }
366
+ #
367
+ # @!attribute [rw] catalog_item_id
368
+ # The ID of the catalog item.
369
+ # @return [String]
370
+ #
371
+ # @!attribute [rw] quantity
372
+ # The quantity of a line item request.
373
+ # @return [Integer]
374
+ #
375
+ # @see http://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/LineItemRequest AWS API Documentation
376
+ #
377
+ class LineItemRequest < Struct.new(
378
+ :catalog_item_id,
379
+ :quantity)
380
+ SENSITIVE = []
381
+ include Aws::Structure
382
+ end
383
+
274
384
  # @note When making an API call, you may pass ListOutpostsInput
275
385
  # data as a hash:
276
386
  #
@@ -429,6 +539,50 @@ module Aws::Outposts
429
539
  include Aws::Structure
430
540
  end
431
541
 
542
+ # Information about an order.
543
+ #
544
+ # @!attribute [rw] outpost_id
545
+ # The ID of the Outpost.
546
+ # @return [String]
547
+ #
548
+ # @!attribute [rw] order_id
549
+ # The ID of the order.
550
+ # @return [String]
551
+ #
552
+ # @!attribute [rw] status
553
+ # The status of the order
554
+ # @return [String]
555
+ #
556
+ # @!attribute [rw] line_items
557
+ # The line items for the order
558
+ # @return [Array<Types::LineItem>]
559
+ #
560
+ # @!attribute [rw] payment_option
561
+ # The payment option for the order.
562
+ # @return [String]
563
+ #
564
+ # @!attribute [rw] order_submission_date
565
+ # The submission date for the order.
566
+ # @return [Time]
567
+ #
568
+ # @!attribute [rw] order_fulfilled_date
569
+ # The fulfillment date of the order.
570
+ # @return [Time]
571
+ #
572
+ # @see http://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/Order AWS API Documentation
573
+ #
574
+ class Order < Struct.new(
575
+ :outpost_id,
576
+ :order_id,
577
+ :status,
578
+ :line_items,
579
+ :payment_option,
580
+ :order_submission_date,
581
+ :order_fulfilled_date)
582
+ SENSITIVE = []
583
+ include Aws::Structure
584
+ end
585
+
432
586
  # Information about an Outpost.
433
587
  #
434
588
  # @!attribute [rw] outpost_id
@@ -28,7 +28,7 @@ require_relative 'aws-sdk-outposts/customizations'
28
28
  # structure.
29
29
  #
30
30
  # outposts = Aws::Outposts::Client.new
31
- # resp = outposts.create_outpost(params)
31
+ # resp = outposts.create_order(params)
32
32
  #
33
33
  # See {Client} for more information.
34
34
  #
@@ -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.20.0'
51
+ GEM_VERSION = '1.21.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.20.0
4
+ version: 1.21.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: 2021-09-01 00:00:00.000000000 Z
11
+ date: 2021-09-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core