aws-sdk-marketplacemetering 1.86.0 → 1.87.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 +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-marketplacemetering/client.rb +35 -6
- data/lib/aws-sdk-marketplacemetering/client_api.rb +7 -0
- data/lib/aws-sdk-marketplacemetering/customizations.rb +0 -8
- data/lib/aws-sdk-marketplacemetering/endpoint_parameters.rb +4 -4
- data/lib/aws-sdk-marketplacemetering/errors.rb +16 -0
- data/lib/aws-sdk-marketplacemetering/types.rb +39 -2
- data/lib/aws-sdk-marketplacemetering.rb +1 -1
- data/sig/client.rbs +2 -1
- data/sig/errors.rbs +3 -0
- data/sig/types.rbs +6 -0
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 921a575921c9ccebc2c9901e8cc6eb30f391e8b0b9a5b5d55b8b498e030eeea4
|
|
4
|
+
data.tar.gz: 7bdd2f10695d81c3c6fd5b7843277562fed8956b3d0777978860ed4a3417a989
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 608a43c3ec9502cb7e7fce7cec7e8699a12068c38be786b59d1e52c7f867c62b220874480653ae8f14081d76fed1a4e49a5c77db5b53beacc18b2058da53681f
|
|
7
|
+
data.tar.gz: 658b41389792e1d895701ee9aad8b67c9bc9c2ffb2bed9b59cb3be842975be96454c347067ac4e8888908a32a4964978ee6dd1f6dcf93989ec7662d9e686d93b
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.87.0
|
|
@@ -483,8 +483,8 @@ module Aws::MarketplaceMetering
|
|
|
483
483
|
|
|
484
484
|
# @!group API Operations
|
|
485
485
|
|
|
486
|
-
# The `CustomerIdentifier` parameter is scheduled for deprecation
|
|
487
|
-
# `CustomerAWSAccountID` instead.
|
|
486
|
+
# The `CustomerIdentifier` parameter is scheduled for deprecation on
|
|
487
|
+
# March 31, 2026. Use `CustomerAWSAccountID` instead.
|
|
488
488
|
#
|
|
489
489
|
# These parameters are mutually exclusive. You can't specify both
|
|
490
490
|
# `CustomerIdentifier` and `CustomerAWSAccountID` in the same request.
|
|
@@ -613,9 +613,15 @@ module Aws::MarketplaceMetering
|
|
|
613
613
|
# provide customers with usage data split into buckets by tags that you
|
|
614
614
|
# define (or allow the customer to define).
|
|
615
615
|
#
|
|
616
|
-
#
|
|
617
|
-
#
|
|
618
|
-
#
|
|
616
|
+
# Submit usage records to report events from the previous hour. If you
|
|
617
|
+
# submit records that are greater than six hours after events occur, the
|
|
618
|
+
# records won’t be accepted. The timestamp in your request determines
|
|
619
|
+
# when an event is recorded. You can only report usage once per hour for
|
|
620
|
+
# each dimension. For AMI-based products, this is per dimension and per
|
|
621
|
+
# EC2 instance. For container products, this is per dimension and per
|
|
622
|
+
# ECS task or EKS pod. You can’t modify values after they’re recorded.
|
|
623
|
+
# If you report usage before the current hour ends, you will be unable
|
|
624
|
+
# to report additional usage until the next hour begins.
|
|
619
625
|
#
|
|
620
626
|
# For Amazon Web Services Regions that support `MeterUsage`, see
|
|
621
627
|
# [MeterUsage Region support for Amazon EC2][1] and [MeterUsage Region
|
|
@@ -656,6 +662,28 @@ module Aws::MarketplaceMetering
|
|
|
656
662
|
# `UsageQuantity` of the `MeterUsage` request, and each
|
|
657
663
|
# `UsageAllocation` must have a unique set of tags (include no tags).
|
|
658
664
|
#
|
|
665
|
+
# @option params [String] :client_token
|
|
666
|
+
# Specifies a unique, case-sensitive identifier that you provide to
|
|
667
|
+
# ensure the idempotency of the request. This lets you safely retry the
|
|
668
|
+
# request without accidentally performing the same operation a second
|
|
669
|
+
# time. Passing the same value to a later call to an operation requires
|
|
670
|
+
# that you also pass the same value for all other parameters. We
|
|
671
|
+
# recommend that you use a [UUID type of value][1].
|
|
672
|
+
#
|
|
673
|
+
# If you don't provide this value, then Amazon Web Services generates a
|
|
674
|
+
# random one for you.
|
|
675
|
+
#
|
|
676
|
+
# If you retry the operation with the same `ClientToken`, but with
|
|
677
|
+
# different parameters, the retry fails with an
|
|
678
|
+
# `IdempotencyConflictException` error.
|
|
679
|
+
#
|
|
680
|
+
# **A suitable default value is auto-generated.** You should normally
|
|
681
|
+
# not need to pass this option.**
|
|
682
|
+
#
|
|
683
|
+
#
|
|
684
|
+
#
|
|
685
|
+
# [1]: https://wikipedia.org/wiki/Universally_unique_identifier
|
|
686
|
+
#
|
|
659
687
|
# @return [Types::MeterUsageResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
660
688
|
#
|
|
661
689
|
# * {Types::MeterUsageResult#metering_record_id #metering_record_id} => String
|
|
@@ -679,6 +707,7 @@ module Aws::MarketplaceMetering
|
|
|
679
707
|
# ],
|
|
680
708
|
# },
|
|
681
709
|
# ],
|
|
710
|
+
# client_token: "ClientToken",
|
|
682
711
|
# })
|
|
683
712
|
#
|
|
684
713
|
# @example Response structure
|
|
@@ -864,7 +893,7 @@ module Aws::MarketplaceMetering
|
|
|
864
893
|
tracer: tracer
|
|
865
894
|
)
|
|
866
895
|
context[:gem_name] = 'aws-sdk-marketplacemetering'
|
|
867
|
-
context[:gem_version] = '1.
|
|
896
|
+
context[:gem_version] = '1.87.0'
|
|
868
897
|
Seahorse::Client::Request.new(handlers, context)
|
|
869
898
|
end
|
|
870
899
|
|
|
@@ -18,12 +18,14 @@ module Aws::MarketplaceMetering
|
|
|
18
18
|
BatchMeterUsageRequest = Shapes::StructureShape.new(name: 'BatchMeterUsageRequest')
|
|
19
19
|
BatchMeterUsageResult = Shapes::StructureShape.new(name: 'BatchMeterUsageResult')
|
|
20
20
|
Boolean = Shapes::BooleanShape.new(name: 'Boolean')
|
|
21
|
+
ClientToken = Shapes::StringShape.new(name: 'ClientToken')
|
|
21
22
|
CustomerAWSAccountId = Shapes::StringShape.new(name: 'CustomerAWSAccountId')
|
|
22
23
|
CustomerIdentifier = Shapes::StringShape.new(name: 'CustomerIdentifier')
|
|
23
24
|
CustomerNotEntitledException = Shapes::StructureShape.new(name: 'CustomerNotEntitledException')
|
|
24
25
|
DisabledApiException = Shapes::StructureShape.new(name: 'DisabledApiException')
|
|
25
26
|
DuplicateRequestException = Shapes::StructureShape.new(name: 'DuplicateRequestException')
|
|
26
27
|
ExpiredTokenException = Shapes::StructureShape.new(name: 'ExpiredTokenException')
|
|
28
|
+
IdempotencyConflictException = Shapes::StructureShape.new(name: 'IdempotencyConflictException')
|
|
27
29
|
InternalServiceErrorException = Shapes::StructureShape.new(name: 'InternalServiceErrorException')
|
|
28
30
|
InvalidCustomerIdentifierException = Shapes::StructureShape.new(name: 'InvalidCustomerIdentifierException')
|
|
29
31
|
InvalidEndpointRegionException = Shapes::StructureShape.new(name: 'InvalidEndpointRegionException')
|
|
@@ -84,6 +86,9 @@ module Aws::MarketplaceMetering
|
|
|
84
86
|
ExpiredTokenException.add_member(:message, Shapes::ShapeRef.new(shape: errorMessage, location_name: "message"))
|
|
85
87
|
ExpiredTokenException.struct_class = Types::ExpiredTokenException
|
|
86
88
|
|
|
89
|
+
IdempotencyConflictException.add_member(:message, Shapes::ShapeRef.new(shape: errorMessage, location_name: "message"))
|
|
90
|
+
IdempotencyConflictException.struct_class = Types::IdempotencyConflictException
|
|
91
|
+
|
|
87
92
|
InternalServiceErrorException.add_member(:message, Shapes::ShapeRef.new(shape: errorMessage, location_name: "message"))
|
|
88
93
|
InternalServiceErrorException.struct_class = Types::InternalServiceErrorException
|
|
89
94
|
|
|
@@ -120,6 +125,7 @@ module Aws::MarketplaceMetering
|
|
|
120
125
|
MeterUsageRequest.add_member(:usage_quantity, Shapes::ShapeRef.new(shape: UsageQuantity, location_name: "UsageQuantity"))
|
|
121
126
|
MeterUsageRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "DryRun"))
|
|
122
127
|
MeterUsageRequest.add_member(:usage_allocations, Shapes::ShapeRef.new(shape: UsageAllocations, location_name: "UsageAllocations"))
|
|
128
|
+
MeterUsageRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientToken, location_name: "ClientToken", metadata: {"idempotencyToken" => true}))
|
|
123
129
|
MeterUsageRequest.struct_class = Types::MeterUsageRequest
|
|
124
130
|
|
|
125
131
|
MeterUsageResult.add_member(:metering_record_id, Shapes::ShapeRef.new(shape: String, location_name: "MeteringRecordId"))
|
|
@@ -232,6 +238,7 @@ module Aws::MarketplaceMetering
|
|
|
232
238
|
o.errors << Shapes::ShapeRef.new(shape: InvalidEndpointRegionException)
|
|
233
239
|
o.errors << Shapes::ShapeRef.new(shape: TimestampOutOfBoundsException)
|
|
234
240
|
o.errors << Shapes::ShapeRef.new(shape: DuplicateRequestException)
|
|
241
|
+
o.errors << Shapes::ShapeRef.new(shape: IdempotencyConflictException)
|
|
235
242
|
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
|
236
243
|
o.errors << Shapes::ShapeRef.new(shape: CustomerNotEntitledException)
|
|
237
244
|
end)
|
|
@@ -13,22 +13,22 @@ module Aws::MarketplaceMetering
|
|
|
13
13
|
# @!attribute use_dual_stack
|
|
14
14
|
# When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.
|
|
15
15
|
#
|
|
16
|
-
# @return [
|
|
16
|
+
# @return [boolean]
|
|
17
17
|
#
|
|
18
18
|
# @!attribute use_fips
|
|
19
19
|
# When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.
|
|
20
20
|
#
|
|
21
|
-
# @return [
|
|
21
|
+
# @return [boolean]
|
|
22
22
|
#
|
|
23
23
|
# @!attribute endpoint
|
|
24
24
|
# Override the endpoint used to send this request
|
|
25
25
|
#
|
|
26
|
-
# @return [
|
|
26
|
+
# @return [string]
|
|
27
27
|
#
|
|
28
28
|
# @!attribute region
|
|
29
29
|
# The AWS region used to dispatch the request.
|
|
30
30
|
#
|
|
31
|
-
# @return [
|
|
31
|
+
# @return [string]
|
|
32
32
|
#
|
|
33
33
|
EndpointParameters = Struct.new(
|
|
34
34
|
:use_dual_stack,
|
|
@@ -31,6 +31,7 @@ module Aws::MarketplaceMetering
|
|
|
31
31
|
# * {DisabledApiException}
|
|
32
32
|
# * {DuplicateRequestException}
|
|
33
33
|
# * {ExpiredTokenException}
|
|
34
|
+
# * {IdempotencyConflictException}
|
|
34
35
|
# * {InternalServiceErrorException}
|
|
35
36
|
# * {InvalidCustomerIdentifierException}
|
|
36
37
|
# * {InvalidEndpointRegionException}
|
|
@@ -111,6 +112,21 @@ module Aws::MarketplaceMetering
|
|
|
111
112
|
end
|
|
112
113
|
end
|
|
113
114
|
|
|
115
|
+
class IdempotencyConflictException < ServiceError
|
|
116
|
+
|
|
117
|
+
# @param [Seahorse::Client::RequestContext] context
|
|
118
|
+
# @param [String] message
|
|
119
|
+
# @param [Aws::MarketplaceMetering::Types::IdempotencyConflictException] data
|
|
120
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
|
121
|
+
super(context, message, data)
|
|
122
|
+
end
|
|
123
|
+
|
|
124
|
+
# @return [String]
|
|
125
|
+
def message
|
|
126
|
+
@message || @data[:message]
|
|
127
|
+
end
|
|
128
|
+
end
|
|
129
|
+
|
|
114
130
|
class InternalServiceErrorException < ServiceError
|
|
115
131
|
|
|
116
132
|
# @param [Seahorse::Client::RequestContext] context
|
|
@@ -119,6 +119,19 @@ module Aws::MarketplaceMetering
|
|
|
119
119
|
include Aws::Structure
|
|
120
120
|
end
|
|
121
121
|
|
|
122
|
+
# The `ClientToken` is being used for multiple requests.
|
|
123
|
+
#
|
|
124
|
+
# @!attribute [rw] message
|
|
125
|
+
# @return [String]
|
|
126
|
+
#
|
|
127
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/meteringmarketplace-2016-01-14/IdempotencyConflictException AWS API Documentation
|
|
128
|
+
#
|
|
129
|
+
class IdempotencyConflictException < Struct.new(
|
|
130
|
+
:message)
|
|
131
|
+
SENSITIVE = []
|
|
132
|
+
include Aws::Structure
|
|
133
|
+
end
|
|
134
|
+
|
|
122
135
|
# An internal error has occurred. Retry your request. If the problem
|
|
123
136
|
# persists, post a message with details on the Amazon Web Services
|
|
124
137
|
# forums.
|
|
@@ -296,6 +309,29 @@ module Aws::MarketplaceMetering
|
|
|
296
309
|
# `UsageAllocation` must have a unique set of tags (include no tags).
|
|
297
310
|
# @return [Array<Types::UsageAllocation>]
|
|
298
311
|
#
|
|
312
|
+
# @!attribute [rw] client_token
|
|
313
|
+
# Specifies a unique, case-sensitive identifier that you provide to
|
|
314
|
+
# ensure the idempotency of the request. This lets you safely retry
|
|
315
|
+
# the request without accidentally performing the same operation a
|
|
316
|
+
# second time. Passing the same value to a later call to an operation
|
|
317
|
+
# requires that you also pass the same value for all other parameters.
|
|
318
|
+
# We recommend that you use a [UUID type of value][1].
|
|
319
|
+
#
|
|
320
|
+
# If you don't provide this value, then Amazon Web Services generates
|
|
321
|
+
# a random one for you.
|
|
322
|
+
#
|
|
323
|
+
# If you retry the operation with the same `ClientToken`, but with
|
|
324
|
+
# different parameters, the retry fails with an
|
|
325
|
+
# `IdempotencyConflictException` error.
|
|
326
|
+
#
|
|
327
|
+
# **A suitable default value is auto-generated.** You should normally
|
|
328
|
+
# not need to pass this option.
|
|
329
|
+
#
|
|
330
|
+
#
|
|
331
|
+
#
|
|
332
|
+
# [1]: https://wikipedia.org/wiki/Universally_unique_identifier
|
|
333
|
+
# @return [String]
|
|
334
|
+
#
|
|
299
335
|
# @see http://docs.aws.amazon.com/goto/WebAPI/meteringmarketplace-2016-01-14/MeterUsageRequest AWS API Documentation
|
|
300
336
|
#
|
|
301
337
|
class MeterUsageRequest < Struct.new(
|
|
@@ -304,7 +340,8 @@ module Aws::MarketplaceMetering
|
|
|
304
340
|
:usage_dimension,
|
|
305
341
|
:usage_quantity,
|
|
306
342
|
:dry_run,
|
|
307
|
-
:usage_allocations
|
|
343
|
+
:usage_allocations,
|
|
344
|
+
:client_token)
|
|
308
345
|
SENSITIVE = []
|
|
309
346
|
include Aws::Structure
|
|
310
347
|
end
|
|
@@ -513,7 +550,7 @@ module Aws::MarketplaceMetering
|
|
|
513
550
|
# @!attribute [rw] timestamp
|
|
514
551
|
# Timestamp, in UTC, for which the usage is being reported.
|
|
515
552
|
#
|
|
516
|
-
# Your application can meter usage for up to
|
|
553
|
+
# Your application can meter usage for up to six hours in the past.
|
|
517
554
|
# Make sure the `timestamp` value is not before the start of the
|
|
518
555
|
# software usage.
|
|
519
556
|
# @return [Time]
|
data/sig/client.rbs
CHANGED
data/sig/errors.rbs
CHANGED
|
@@ -23,6 +23,9 @@ module Aws
|
|
|
23
23
|
class ExpiredTokenException < ::Aws::Errors::ServiceError
|
|
24
24
|
def message: () -> ::String
|
|
25
25
|
end
|
|
26
|
+
class IdempotencyConflictException < ::Aws::Errors::ServiceError
|
|
27
|
+
def message: () -> ::String
|
|
28
|
+
end
|
|
26
29
|
class InternalServiceErrorException < ::Aws::Errors::ServiceError
|
|
27
30
|
def message: () -> ::String
|
|
28
31
|
end
|
data/sig/types.rbs
CHANGED
|
@@ -40,6 +40,11 @@ module Aws::MarketplaceMetering
|
|
|
40
40
|
SENSITIVE: []
|
|
41
41
|
end
|
|
42
42
|
|
|
43
|
+
class IdempotencyConflictException
|
|
44
|
+
attr_accessor message: ::String
|
|
45
|
+
SENSITIVE: []
|
|
46
|
+
end
|
|
47
|
+
|
|
43
48
|
class InternalServiceErrorException
|
|
44
49
|
attr_accessor message: ::String
|
|
45
50
|
SENSITIVE: []
|
|
@@ -97,6 +102,7 @@ module Aws::MarketplaceMetering
|
|
|
97
102
|
attr_accessor usage_quantity: ::Integer
|
|
98
103
|
attr_accessor dry_run: bool
|
|
99
104
|
attr_accessor usage_allocations: ::Array[Types::UsageAllocation]
|
|
105
|
+
attr_accessor client_token: ::String
|
|
100
106
|
SENSITIVE: []
|
|
101
107
|
end
|
|
102
108
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: aws-sdk-marketplacemetering
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.87.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Amazon Web Services
|
|
@@ -18,7 +18,7 @@ dependencies:
|
|
|
18
18
|
version: '3'
|
|
19
19
|
- - ">="
|
|
20
20
|
- !ruby/object:Gem::Version
|
|
21
|
-
version: 3.
|
|
21
|
+
version: 3.234.0
|
|
22
22
|
type: :runtime
|
|
23
23
|
prerelease: false
|
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -28,7 +28,7 @@ dependencies:
|
|
|
28
28
|
version: '3'
|
|
29
29
|
- - ">="
|
|
30
30
|
- !ruby/object:Gem::Version
|
|
31
|
-
version: 3.
|
|
31
|
+
version: 3.234.0
|
|
32
32
|
- !ruby/object:Gem::Dependency
|
|
33
33
|
name: aws-sigv4
|
|
34
34
|
requirement: !ruby/object:Gem::Requirement
|