aws-sdk-marketplacemetering 1.75.0 → 1.76.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 +109 -65
- data/lib/aws-sdk-marketplacemetering/client_api.rb +2 -1
- data/lib/aws-sdk-marketplacemetering/endpoint_provider.rb +1 -1
- data/lib/aws-sdk-marketplacemetering/types.rb +42 -33
- data/lib/aws-sdk-marketplacemetering.rb +1 -1
- data/sig/client.rbs +3 -2
- data/sig/types.rbs +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 58e46d10ce672c1e9dba2ee7d611d4f0b50358f239c161c60681dcae9b440d58
|
4
|
+
data.tar.gz: '08238e4f044537a92ba1edccf6f0d208f8895c1df70e90b063092c6b50ea5fd1'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 61bff44cef6997858a42c0a95bac30ea83dfbc937016c23014951a32a7dbc2d132d5fe91d6041b570682101152e6976acc089fe01369625e41566cbabaa8214b
|
7
|
+
data.tar.gz: 9bd007cc73d8aa1f497bf7d9330ec2fabfa3cbed539859a7f26838a46a94c8f15344e284091bf46ca9c27a1d1c927c59ca2bea2395b3134c5dd73ba21f5d8096
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.76.0 (2025-03-25)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - This release enhances the BatchMeterUsage API to support new field CustomerAWSAccountId in request and response and making CustomerIdentifier optional. CustomerAWSAccountId or CustomerIdentifier must be provided in request but not both.
|
8
|
+
|
4
9
|
1.75.0 (2025-02-18)
|
5
10
|
------------------
|
6
11
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.76.0
|
@@ -477,50 +477,55 @@ module Aws::MarketplaceMetering
|
|
477
477
|
|
478
478
|
# @!group API Operations
|
479
479
|
|
480
|
-
# `
|
481
|
-
#
|
480
|
+
# The `CustomerIdentifier` parameter is scheduled for deprecation. Use
|
481
|
+
# `CustomerAWSAccountID` instead.
|
482
482
|
#
|
483
|
-
#
|
484
|
-
#
|
483
|
+
# These parameters are mutually exclusive. You can't specify both
|
484
|
+
# `CustomerIdentifier` and `CustomerAWSAccountID` in the same request.
|
485
485
|
#
|
486
|
-
#
|
487
|
-
#
|
488
|
-
#
|
486
|
+
# To post metering records for customers, SaaS applications call
|
487
|
+
# `BatchMeterUsage`, which is used for metering SaaS flexible
|
488
|
+
# consumption pricing (FCP). Identical requests are idempotent and can
|
489
|
+
# be retried with the same records or a subset of records. Each
|
490
|
+
# `BatchMeterUsage` request is for only one product. If you want to
|
491
|
+
# meter usage for multiple products, you must make multiple
|
492
|
+
# `BatchMeterUsage` calls.
|
489
493
|
#
|
490
|
-
# Usage records
|
491
|
-
#
|
492
|
-
#
|
494
|
+
# Usage records should be submitted in quick succession following a
|
495
|
+
# recorded event. Usage records aren't accepted 6 hours or more after
|
496
|
+
# an event.
|
493
497
|
#
|
494
|
-
# `BatchMeterUsage` can process up to 25 `UsageRecords` at a time
|
498
|
+
# `BatchMeterUsage` can process up to 25 `UsageRecords` at a time, and
|
499
|
+
# each request must be less than 1 MB in size. Optionally, you can have
|
500
|
+
# multiple usage allocations for usage data that's split into buckets
|
501
|
+
# according to predefined tags.
|
495
502
|
#
|
496
|
-
#
|
497
|
-
#
|
498
|
-
#
|
503
|
+
# `BatchMeterUsage` returns a list of `UsageRecordResult` objects, which
|
504
|
+
# have each `UsageRecord`. It also returns a list of
|
505
|
+
# `UnprocessedRecords`, which indicate errors on the service side that
|
506
|
+
# should be retried.
|
499
507
|
#
|
500
|
-
#
|
501
|
-
#
|
502
|
-
# `UnprocessedRecords`, indicating errors in the service side that you
|
503
|
-
# should retry.
|
508
|
+
# For Amazon Web Services Regions that support `BatchMeterUsage`, see
|
509
|
+
# [BatchMeterUsage Region support][1].
|
504
510
|
#
|
505
|
-
#
|
506
|
-
#
|
507
|
-
# <note markdown="1"> For an example of using `BatchMeterUsage`, see [ BatchMeterUsage code
|
508
|
-
# example][1] in the *AWS Marketplace Seller Guide*.
|
511
|
+
# <note markdown="1"> For an example of `BatchMeterUsage`, see [ BatchMeterUsage code
|
512
|
+
# example][2] in the *Amazon Web Services Marketplace Seller Guide*.
|
509
513
|
#
|
510
514
|
# </note>
|
511
515
|
#
|
512
516
|
#
|
513
517
|
#
|
514
|
-
# [1]: https://docs.aws.amazon.com/marketplace/latest/
|
518
|
+
# [1]: https://docs.aws.amazon.com/marketplace/latest/APIReference/metering-regions.html#batchmeterusage-region-support
|
519
|
+
# [2]: https://docs.aws.amazon.com/marketplace/latest/userguide/saas-code-examples.html#saas-batchmeterusage-example
|
515
520
|
#
|
516
521
|
# @option params [required, Array<Types::UsageRecord>] :usage_records
|
517
522
|
# The set of `UsageRecords` to submit. `BatchMeterUsage` accepts up to
|
518
523
|
# 25 `UsageRecords` at a time.
|
519
524
|
#
|
520
525
|
# @option params [required, String] :product_code
|
521
|
-
# Product code is used to uniquely identify a product in
|
522
|
-
# Marketplace. The product code should be the same as the one
|
523
|
-
# during the publishing of a new product.
|
526
|
+
# Product code is used to uniquely identify a product in Amazon Web
|
527
|
+
# Services Marketplace. The product code should be the same as the one
|
528
|
+
# used during the publishing of a new product.
|
524
529
|
#
|
525
530
|
# @return [Types::BatchMeterUsageResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
526
531
|
#
|
@@ -533,7 +538,7 @@ module Aws::MarketplaceMetering
|
|
533
538
|
# usage_records: [ # required
|
534
539
|
# {
|
535
540
|
# timestamp: Time.now, # required
|
536
|
-
# customer_identifier: "CustomerIdentifier",
|
541
|
+
# customer_identifier: "CustomerIdentifier",
|
537
542
|
# dimension: "UsageDimension", # required
|
538
543
|
# quantity: 1,
|
539
544
|
# usage_allocations: [
|
@@ -547,6 +552,7 @@ module Aws::MarketplaceMetering
|
|
547
552
|
# ],
|
548
553
|
# },
|
549
554
|
# ],
|
555
|
+
# customer_aws_account_id: "CustomerAWSAccountId",
|
550
556
|
# },
|
551
557
|
# ],
|
552
558
|
# product_code: "ProductCode", # required
|
@@ -564,6 +570,7 @@ module Aws::MarketplaceMetering
|
|
564
570
|
# resp.results[0].usage_record.usage_allocations[0].tags #=> Array
|
565
571
|
# resp.results[0].usage_record.usage_allocations[0].tags[0].key #=> String
|
566
572
|
# resp.results[0].usage_record.usage_allocations[0].tags[0].value #=> String
|
573
|
+
# resp.results[0].usage_record.customer_aws_account_id #=> String
|
567
574
|
# resp.results[0].metering_record_id #=> String
|
568
575
|
# resp.results[0].status #=> String, one of "Success", "CustomerNotSubscribed", "DuplicateRecord"
|
569
576
|
# resp.unprocessed_records #=> Array
|
@@ -576,6 +583,7 @@ module Aws::MarketplaceMetering
|
|
576
583
|
# resp.unprocessed_records[0].usage_allocations[0].tags #=> Array
|
577
584
|
# resp.unprocessed_records[0].usage_allocations[0].tags[0].key #=> String
|
578
585
|
# resp.unprocessed_records[0].usage_allocations[0].tags[0].value #=> String
|
586
|
+
# resp.unprocessed_records[0].customer_aws_account_id #=> String
|
579
587
|
#
|
580
588
|
# @see http://docs.aws.amazon.com/goto/WebAPI/meteringmarketplace-2016-01-14/BatchMeterUsage AWS API Documentation
|
581
589
|
#
|
@@ -587,10 +595,13 @@ module Aws::MarketplaceMetering
|
|
587
595
|
end
|
588
596
|
|
589
597
|
# API to emit metering records. For identical requests, the API is
|
590
|
-
# idempotent
|
598
|
+
# idempotent and returns the metering record ID. This is used for
|
599
|
+
# metering flexible consumption pricing (FCP) Amazon Machine Images
|
600
|
+
# (AMI) and container products.
|
591
601
|
#
|
592
|
-
# `MeterUsage` is authenticated on the buyer's
|
593
|
-
# credentials from the EC2 instance, ECS
|
602
|
+
# `MeterUsage` is authenticated on the buyer's Amazon Web Services
|
603
|
+
# account using credentials from the Amazon EC2 instance, Amazon ECS
|
604
|
+
# task, or Amazon EKS pod.
|
594
605
|
#
|
595
606
|
# `MeterUsage` can optionally include multiple usage allocations, to
|
596
607
|
# provide customers with usage data split into buckets by tags that you
|
@@ -600,14 +611,23 @@ module Aws::MarketplaceMetering
|
|
600
611
|
# after the event that is being recorded, and are not accepted more than
|
601
612
|
# 6 hours after the event.
|
602
613
|
#
|
614
|
+
# For Amazon Web Services Regions that support `MeterUsage`, see
|
615
|
+
# [MeterUsage Region support for Amazon EC2][1] and [MeterUsage Region
|
616
|
+
# support for Amazon ECS and Amazon EKS][2].
|
617
|
+
#
|
618
|
+
#
|
619
|
+
#
|
620
|
+
# [1]: https://docs.aws.amazon.com/marketplace/latest/APIReference/metering-regions.html#meterusage-region-support-ec2
|
621
|
+
# [2]: https://docs.aws.amazon.com/marketplace/latest/APIReference/metering-regions.html#meterusage-region-support-ecs-eks
|
622
|
+
#
|
603
623
|
# @option params [required, String] :product_code
|
604
|
-
# Product code is used to uniquely identify a product in
|
605
|
-
# Marketplace. The product code should be the same as the one
|
606
|
-
# during the publishing of a new product.
|
624
|
+
# Product code is used to uniquely identify a product in Amazon Web
|
625
|
+
# Services Marketplace. The product code should be the same as the one
|
626
|
+
# used during the publishing of a new product.
|
607
627
|
#
|
608
628
|
# @option params [required, Time,DateTime,Date,Integer,String] :timestamp
|
609
629
|
# Timestamp, in UTC, for which the usage is being reported. Your
|
610
|
-
# application can meter usage for up to
|
630
|
+
# application can meter usage for up to six hours in the past. Make sure
|
611
631
|
# the `timestamp` value is not before the start of the software usage.
|
612
632
|
#
|
613
633
|
# @option params [required, String] :usage_dimension
|
@@ -668,21 +688,22 @@ module Aws::MarketplaceMetering
|
|
668
688
|
req.send_request(options)
|
669
689
|
end
|
670
690
|
|
671
|
-
# Paid container software products sold through
|
672
|
-
# integrate with the
|
673
|
-
# `RegisterUsage` operation for software
|
674
|
-
# and BYOL products for Amazon ECS or
|
675
|
-
# call `RegisterUsage`, but you may
|
676
|
-
# receive usage data in your seller
|
677
|
-
# the behavior of `RegisterUsage`.
|
678
|
-
# functions: metering and
|
691
|
+
# Paid container software products sold through Amazon Web Services
|
692
|
+
# Marketplace must integrate with the Amazon Web Services Marketplace
|
693
|
+
# Metering Service and call the `RegisterUsage` operation for software
|
694
|
+
# entitlement and metering. Free and BYOL products for Amazon ECS or
|
695
|
+
# Amazon EKS aren't required to call `RegisterUsage`, but you may
|
696
|
+
# choose to do so if you would like to receive usage data in your seller
|
697
|
+
# reports. The sections below explain the behavior of `RegisterUsage`.
|
698
|
+
# `RegisterUsage` performs two primary functions: metering and
|
699
|
+
# entitlement.
|
679
700
|
#
|
680
701
|
# * *Entitlement*: `RegisterUsage` allows you to verify that the
|
681
702
|
# customer running your paid software is subscribed to your product on
|
682
|
-
#
|
683
|
-
# Your container image that integrates with
|
684
|
-
# required to guard against unauthorized use
|
685
|
-
# such a `CustomerNotSubscribedException` or
|
703
|
+
# Amazon Web Services Marketplace, enabling you to guard against
|
704
|
+
# unauthorized use. Your container image that integrates with
|
705
|
+
# `RegisterUsage` is only required to guard against unauthorized use
|
706
|
+
# at container startup, as such a `CustomerNotSubscribedException` or
|
686
707
|
# `PlatformNotSupportedException` will only be thrown on the initial
|
687
708
|
# call to `RegisterUsage`. Subsequent calls from the same Amazon ECS
|
688
709
|
# task instance (e.g. task-id) or Amazon EKS pod will not throw a
|
@@ -695,23 +716,35 @@ module Aws::MarketplaceMetering
|
|
695
716
|
# For example, if a customer has a 10 node Amazon ECS or Amazon EKS
|
696
717
|
# cluster and a service configured as a Daemon Set, then Amazon ECS or
|
697
718
|
# Amazon EKS will launch a task on all 10 cluster nodes and the
|
698
|
-
# customer will be charged
|
699
|
-
#
|
700
|
-
#
|
701
|
-
#
|
702
|
-
#
|
703
|
-
#
|
704
|
-
#
|
705
|
-
#
|
706
|
-
#
|
719
|
+
# customer will be charged for 10 tasks. Software metering is handled
|
720
|
+
# by the Amazon Web Services Marketplace metering control plane—your
|
721
|
+
# software is not required to perform metering-specific actions other
|
722
|
+
# than to call `RegisterUsage` to commence metering. The Amazon Web
|
723
|
+
# Services Marketplace metering control plane will also bill customers
|
724
|
+
# for running ECS tasks and Amazon EKS pods, regardless of the
|
725
|
+
# customer's subscription state, which removes the need for your
|
726
|
+
# software to run entitlement checks at runtime. For containers,
|
727
|
+
# `RegisterUsage` should be called immediately at launch. If you don’t
|
728
|
+
# register the container within the first 6 hours of the launch,
|
729
|
+
# Amazon Web Services Marketplace Metering Service doesn’t provide any
|
730
|
+
# metering guarantees for previous months. Metering will continue,
|
731
|
+
# however, for the current month forward until the container ends.
|
732
|
+
# `RegisterUsage` is for metering paid hourly container products.
|
733
|
+
#
|
734
|
+
# For Amazon Web Services Regions that support `RegisterUsage`, see
|
735
|
+
# [RegisterUsage Region support][1].
|
736
|
+
#
|
737
|
+
#
|
738
|
+
#
|
739
|
+
# [1]: https://docs.aws.amazon.com/marketplace/latest/APIReference/metering-regions.html#registerusage-region-support
|
707
740
|
#
|
708
741
|
# @option params [required, String] :product_code
|
709
|
-
# Product code is used to uniquely identify a product in
|
710
|
-
# Marketplace. The product code should be the same as the one
|
711
|
-
# during the publishing of a new product.
|
742
|
+
# Product code is used to uniquely identify a product in Amazon Web
|
743
|
+
# Services Marketplace. The product code should be the same as the one
|
744
|
+
# used during the publishing of a new product.
|
712
745
|
#
|
713
746
|
# @option params [required, Integer] :public_key_version
|
714
|
-
# Public Key Version provided by
|
747
|
+
# Public Key Version provided by Amazon Web Services Marketplace
|
715
748
|
#
|
716
749
|
# @option params [String] :nonce
|
717
750
|
# (Optional) To scope down the registration to a specific running
|
@@ -751,17 +784,28 @@ module Aws::MarketplaceMetering
|
|
751
784
|
# obtain a `CustomerIdentifier` along with the `CustomerAWSAccountId`
|
752
785
|
# and `ProductCode`.
|
753
786
|
#
|
754
|
-
# <note markdown="1">
|
755
|
-
#
|
756
|
-
#
|
757
|
-
#
|
758
|
-
# example][1] in the *AWS Marketplace Seller Guide*.
|
787
|
+
# <note markdown="1"> To successfully resolve the token, the API must be called from the
|
788
|
+
# account that was used to publish the SaaS application. For an example
|
789
|
+
# of using `ResolveCustomer`, see [ ResolveCustomer code example][1] in
|
790
|
+
# the *Amazon Web Services Marketplace Seller Guide*.
|
759
791
|
#
|
760
792
|
# </note>
|
761
793
|
#
|
794
|
+
# Permission is required for this operation. Your IAM role or user
|
795
|
+
# performing this operation requires a policy to allow the
|
796
|
+
# `aws-marketplace:ResolveCustomer` action. For more information, see
|
797
|
+
# [Actions, resources, and condition keys for Amazon Web Services
|
798
|
+
# Marketplace Metering Service][2] in the *Service Authorization
|
799
|
+
# Reference*.
|
800
|
+
#
|
801
|
+
# For Amazon Web Services Regions that support `ResolveCustomer`, see
|
802
|
+
# [ResolveCustomer Region support][3].
|
803
|
+
#
|
762
804
|
#
|
763
805
|
#
|
764
806
|
# [1]: https://docs.aws.amazon.com/marketplace/latest/userguide/saas-code-examples.html#saas-resolvecustomer-example
|
807
|
+
# [2]: https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsmarketplacemeteringservice.html
|
808
|
+
# [3]: https://docs.aws.amazon.com/marketplace/latest/APIReference/metering-regions.html#resolvecustomer-region-support
|
765
809
|
#
|
766
810
|
# @option params [required, String] :registration_token
|
767
811
|
# When a buyer visits your website during the registration process, the
|
@@ -814,7 +858,7 @@ module Aws::MarketplaceMetering
|
|
814
858
|
tracer: tracer
|
815
859
|
)
|
816
860
|
context[:gem_name] = 'aws-sdk-marketplacemetering'
|
817
|
-
context[:gem_version] = '1.
|
861
|
+
context[:gem_version] = '1.76.0'
|
818
862
|
Seahorse::Client::Request.new(handlers, context)
|
819
863
|
end
|
820
864
|
|
@@ -164,10 +164,11 @@ module Aws::MarketplaceMetering
|
|
164
164
|
UsageAllocations.member = Shapes::ShapeRef.new(shape: UsageAllocation)
|
165
165
|
|
166
166
|
UsageRecord.add_member(:timestamp, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "Timestamp"))
|
167
|
-
UsageRecord.add_member(:customer_identifier, Shapes::ShapeRef.new(shape: CustomerIdentifier,
|
167
|
+
UsageRecord.add_member(:customer_identifier, Shapes::ShapeRef.new(shape: CustomerIdentifier, location_name: "CustomerIdentifier"))
|
168
168
|
UsageRecord.add_member(:dimension, Shapes::ShapeRef.new(shape: UsageDimension, required: true, location_name: "Dimension"))
|
169
169
|
UsageRecord.add_member(:quantity, Shapes::ShapeRef.new(shape: UsageQuantity, location_name: "Quantity"))
|
170
170
|
UsageRecord.add_member(:usage_allocations, Shapes::ShapeRef.new(shape: UsageAllocations, location_name: "UsageAllocations"))
|
171
|
+
UsageRecord.add_member(:customer_aws_account_id, Shapes::ShapeRef.new(shape: CustomerAWSAccountId, location_name: "CustomerAWSAccountId"))
|
171
172
|
UsageRecord.struct_class = Types::UsageRecord
|
172
173
|
|
173
174
|
UsageRecordList.member = Shapes::ShapeRef.new(shape: UsageRecord)
|
@@ -28,7 +28,7 @@ module Aws::MarketplaceMetering
|
|
28
28
|
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
29
29
|
end
|
30
30
|
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)
|
31
|
-
if Aws::Endpoints::Matchers.boolean_equals?(
|
31
|
+
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
|
32
32
|
return Aws::Endpoints::Endpoint.new(url: "https://metering.marketplace-fips.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
33
33
|
end
|
34
34
|
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
@@ -19,9 +19,9 @@ module Aws::MarketplaceMetering
|
|
19
19
|
# @return [Array<Types::UsageRecord>]
|
20
20
|
#
|
21
21
|
# @!attribute [rw] product_code
|
22
|
-
# Product code is used to uniquely identify a product in
|
23
|
-
# Marketplace. The product code should be the same as the one
|
24
|
-
# during the publishing of a new product.
|
22
|
+
# Product code is used to uniquely identify a product in Amazon Web
|
23
|
+
# Services Marketplace. The product code should be the same as the one
|
24
|
+
# used during the publishing of a new product.
|
25
25
|
# @return [String]
|
26
26
|
#
|
27
27
|
# @see http://docs.aws.amazon.com/goto/WebAPI/meteringmarketplace-2016-01-14/BatchMeterUsageRequest AWS API Documentation
|
@@ -38,9 +38,9 @@ module Aws::MarketplaceMetering
|
|
38
38
|
#
|
39
39
|
# @!attribute [rw] results
|
40
40
|
# Contains all `UsageRecords` processed by `BatchMeterUsage`. These
|
41
|
-
# records were either honored by
|
42
|
-
# were invalid. Invalid records should be fixed
|
43
|
-
# resubmitted.
|
41
|
+
# records were either honored by Amazon Web Services Marketplace
|
42
|
+
# Metering Service or were invalid. Invalid records should be fixed
|
43
|
+
# before being resubmitted.
|
44
44
|
# @return [Array<Types::UsageRecordResult>]
|
45
45
|
#
|
46
46
|
# @!attribute [rw] unprocessed_records
|
@@ -120,7 +120,8 @@ module Aws::MarketplaceMetering
|
|
120
120
|
end
|
121
121
|
|
122
122
|
# An internal error has occurred. Retry your request. If the problem
|
123
|
-
# persists, post a message with details on the
|
123
|
+
# persists, post a message with details on the Amazon Web Services
|
124
|
+
# forums.
|
124
125
|
#
|
125
126
|
# @!attribute [rw] message
|
126
127
|
# @return [String]
|
@@ -146,9 +147,10 @@ module Aws::MarketplaceMetering
|
|
146
147
|
include Aws::Structure
|
147
148
|
end
|
148
149
|
|
149
|
-
# The endpoint being called is in a
|
150
|
-
# instance, ECS task, or EKS pod. The Region of the
|
151
|
-
# endpoint and the
|
150
|
+
# The endpoint being called is in a Amazon Web Services Region different
|
151
|
+
# from your EC2 instance, ECS task, or EKS pod. The Region of the
|
152
|
+
# Metering Service endpoint and the Amazon Web Services Region of the
|
153
|
+
# resource must match.
|
152
154
|
#
|
153
155
|
# @!attribute [rw] message
|
154
156
|
# @return [String]
|
@@ -188,9 +190,10 @@ module Aws::MarketplaceMetering
|
|
188
190
|
include Aws::Structure
|
189
191
|
end
|
190
192
|
|
191
|
-
# `RegisterUsage` must be called in the same
|
192
|
-
# launched in. This prevents a container from
|
193
|
-
# withRegion(“us-east-1”) when calling
|
193
|
+
# `RegisterUsage` must be called in the same Amazon Web Services Region
|
194
|
+
# the ECS task was launched in. This prevents a container from
|
195
|
+
# hardcoding a Region (e.g. withRegion(“us-east-1”) when calling
|
196
|
+
# `RegisterUsage`.
|
194
197
|
#
|
195
198
|
# @!attribute [rw] message
|
196
199
|
# @return [String]
|
@@ -229,8 +232,7 @@ module Aws::MarketplaceMetering
|
|
229
232
|
include Aws::Structure
|
230
233
|
end
|
231
234
|
|
232
|
-
#
|
233
|
-
# is greater than 500 for a single usage record.
|
235
|
+
# Sum of allocated usage quantities is not equal to the usage quantity.
|
234
236
|
#
|
235
237
|
# @!attribute [rw] message
|
236
238
|
# @return [String]
|
@@ -258,14 +260,14 @@ module Aws::MarketplaceMetering
|
|
258
260
|
end
|
259
261
|
|
260
262
|
# @!attribute [rw] product_code
|
261
|
-
# Product code is used to uniquely identify a product in
|
262
|
-
# Marketplace. The product code should be the same as the one
|
263
|
-
# during the publishing of a new product.
|
263
|
+
# Product code is used to uniquely identify a product in Amazon Web
|
264
|
+
# Services Marketplace. The product code should be the same as the one
|
265
|
+
# used during the publishing of a new product.
|
264
266
|
# @return [String]
|
265
267
|
#
|
266
268
|
# @!attribute [rw] timestamp
|
267
269
|
# Timestamp, in UTC, for which the usage is being reported. Your
|
268
|
-
# application can meter usage for up to
|
270
|
+
# application can meter usage for up to six hours in the past. Make
|
269
271
|
# sure the `timestamp` value is not before the start of the software
|
270
272
|
# usage.
|
271
273
|
# @return [Time]
|
@@ -319,9 +321,9 @@ module Aws::MarketplaceMetering
|
|
319
321
|
include Aws::Structure
|
320
322
|
end
|
321
323
|
|
322
|
-
#
|
323
|
-
# platform. Currently, Amazon ECS, Amazon EKS, and
|
324
|
-
# supported.
|
324
|
+
# Amazon Web Services Marketplace does not support metering usage from
|
325
|
+
# the underlying platform. Currently, Amazon ECS, Amazon EKS, and
|
326
|
+
# Fargate are supported.
|
325
327
|
#
|
326
328
|
# @!attribute [rw] message
|
327
329
|
# @return [String]
|
@@ -335,13 +337,13 @@ module Aws::MarketplaceMetering
|
|
335
337
|
end
|
336
338
|
|
337
339
|
# @!attribute [rw] product_code
|
338
|
-
# Product code is used to uniquely identify a product in
|
339
|
-
# Marketplace. The product code should be the same as the one
|
340
|
-
# during the publishing of a new product.
|
340
|
+
# Product code is used to uniquely identify a product in Amazon Web
|
341
|
+
# Services Marketplace. The product code should be the same as the one
|
342
|
+
# used during the publishing of a new product.
|
341
343
|
# @return [String]
|
342
344
|
#
|
343
345
|
# @!attribute [rw] public_key_version
|
344
|
-
# Public Key Version provided by
|
346
|
+
# Public Key Version provided by Amazon Web Services Marketplace
|
345
347
|
# @return [Integer]
|
346
348
|
#
|
347
349
|
# @!attribute [rw] nonce
|
@@ -410,8 +412,9 @@ module Aws::MarketplaceMetering
|
|
410
412
|
# @return [String]
|
411
413
|
#
|
412
414
|
# @!attribute [rw] customer_aws_account_id
|
413
|
-
# The `CustomerAWSAccountId` provides the
|
414
|
-
# with the `CustomerIdentifier` for the individual
|
415
|
+
# The `CustomerAWSAccountId` provides the Amazon Web Services account
|
416
|
+
# ID associated with the `CustomerIdentifier` for the individual
|
417
|
+
# customer.
|
415
418
|
# @return [String]
|
416
419
|
#
|
417
420
|
# @see http://docs.aws.amazon.com/goto/WebAPI/meteringmarketplace-2016-01-14/ResolveCustomerResult AWS API Documentation
|
@@ -521,9 +524,9 @@ module Aws::MarketplaceMetering
|
|
521
524
|
# @return [String]
|
522
525
|
#
|
523
526
|
# @!attribute [rw] dimension
|
524
|
-
# During the process of registering a product on
|
525
|
-
# dimensions are specified. These represent different
|
526
|
-
# in your application.
|
527
|
+
# During the process of registering a product on Amazon Web Services
|
528
|
+
# Marketplace, dimensions are specified. These represent different
|
529
|
+
# units of value in your application.
|
527
530
|
# @return [String]
|
528
531
|
#
|
529
532
|
# @!attribute [rw] quantity
|
@@ -537,6 +540,11 @@ module Aws::MarketplaceMetering
|
|
537
540
|
# `UsageRecord`.
|
538
541
|
# @return [Array<Types::UsageAllocation>]
|
539
542
|
#
|
543
|
+
# @!attribute [rw] customer_aws_account_id
|
544
|
+
# The `CustomerAWSAccountID` parameter specifies the AWS account ID of
|
545
|
+
# the buyer.
|
546
|
+
# @return [String]
|
547
|
+
#
|
540
548
|
# @see http://docs.aws.amazon.com/goto/WebAPI/meteringmarketplace-2016-01-14/UsageRecord AWS API Documentation
|
541
549
|
#
|
542
550
|
class UsageRecord < Struct.new(
|
@@ -544,7 +552,8 @@ module Aws::MarketplaceMetering
|
|
544
552
|
:customer_identifier,
|
545
553
|
:dimension,
|
546
554
|
:quantity,
|
547
|
-
:usage_allocations
|
555
|
+
:usage_allocations,
|
556
|
+
:customer_aws_account_id)
|
548
557
|
SENSITIVE = []
|
549
558
|
include Aws::Structure
|
550
559
|
end
|
@@ -579,7 +588,7 @@ module Aws::MarketplaceMetering
|
|
579
588
|
# Future `UsageRecords` for this customer will fail until the
|
580
589
|
# customer subscribes to your product.
|
581
590
|
#
|
582
|
-
# * The customer's
|
591
|
+
# * The customer's Amazon Web Services account was suspended.
|
583
592
|
# * *DuplicateRecord*- Indicates that the `UsageRecord` was invalid
|
584
593
|
# and not honored. A previously metered `UsageRecord` had the same
|
585
594
|
# customer, dimension, and time, but a different quantity.
|
data/sig/client.rbs
CHANGED
@@ -88,7 +88,7 @@ module Aws
|
|
88
88
|
usage_records: Array[
|
89
89
|
{
|
90
90
|
timestamp: ::Time,
|
91
|
-
customer_identifier: ::String
|
91
|
+
customer_identifier: ::String?,
|
92
92
|
dimension: ::String,
|
93
93
|
quantity: ::Integer?,
|
94
94
|
usage_allocations: Array[
|
@@ -101,7 +101,8 @@ module Aws
|
|
101
101
|
},
|
102
102
|
]?
|
103
103
|
},
|
104
|
-
]
|
104
|
+
]?,
|
105
|
+
customer_aws_account_id: ::String?
|
105
106
|
},
|
106
107
|
],
|
107
108
|
product_code: ::String
|
data/sig/types.rbs
CHANGED
@@ -163,6 +163,7 @@ module Aws::MarketplaceMetering
|
|
163
163
|
attr_accessor dimension: ::String
|
164
164
|
attr_accessor quantity: ::Integer
|
165
165
|
attr_accessor usage_allocations: ::Array[Types::UsageAllocation]
|
166
|
+
attr_accessor customer_aws_account_id: ::String
|
166
167
|
SENSITIVE: []
|
167
168
|
end
|
168
169
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.76.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: 2025-
|
11
|
+
date: 2025-03-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|