1{
2    "smithy": "1.0",
3    "metadata": {
4        "suppressions": [
5            {
6                "id": "HttpMethodSemantics",
7                "namespace": "*"
8            },
9            {
10                "id": "HttpResponseCodeSemantics",
11                "namespace": "*"
12            },
13            {
14                "id": "PaginatedTrait",
15                "namespace": "*"
16            },
17            {
18                "id": "HttpHeaderTrait",
19                "namespace": "*"
20            },
21            {
22                "id": "HttpUriConflict",
23                "namespace": "*"
24            },
25            {
26                "id": "Service",
27                "namespace": "*"
28            }
29        ]
30    },
31    "shapes": {
32        "com.amazonaws.marketplaceentitlementservice#AWSMPEntitlementService": {
33            "type": "service",
34            "version": "2017-01-11",
35            "operations": [
36                {
37                    "target": "com.amazonaws.marketplaceentitlementservice#GetEntitlements"
38                }
39            ],
40            "traits": {
41                "aws.api#service": {
42                    "sdkId": "Marketplace Entitlement Service",
43                    "arnNamespace": "aws-marketplace",
44                    "cloudFormationName": "MarketplaceEntitlementService",
45                    "cloudTrailEventSource": "marketplaceentitlementservice.amazonaws.com",
46                    "endpointPrefix": "entitlement.marketplace"
47                },
48                "aws.auth#sigv4": {
49                    "name": "aws-marketplace"
50                },
51                "aws.protocols#awsJson1_1": {},
52                "smithy.api#documentation": "<fullname>AWS Marketplace Entitlement Service</fullname>\n         <p>This reference provides descriptions of the AWS Marketplace Entitlement Service\n   API.</p>\n         <p>AWS Marketplace Entitlement Service is used to determine the entitlement of a customer to\n      a given product. An entitlement represents capacity in a product owned by the customer. For\n      example, a customer might own some number of users or seats in an SaaS application or some\n      amount of data capacity in a multi-tenant database.</p>\n         <p>\n            <b>Getting Entitlement Records</b>\n         </p>\n         <ul>\n            <li>\n               <p>\n                  <i>GetEntitlements</i>- Gets the entitlements for a Marketplace\n     product.</p>\n            </li>\n         </ul>",
53                "smithy.api#title": "AWS Marketplace Entitlement Service"
54            }
55        },
56        "com.amazonaws.marketplaceentitlementservice#Boolean": {
57            "type": "boolean",
58            "traits": {
59                "smithy.api#box": {}
60            }
61        },
62        "com.amazonaws.marketplaceentitlementservice#Double": {
63            "type": "double",
64            "traits": {
65                "smithy.api#box": {}
66            }
67        },
68        "com.amazonaws.marketplaceentitlementservice#Entitlement": {
69            "type": "structure",
70            "members": {
71                "ProductCode": {
72                    "target": "com.amazonaws.marketplaceentitlementservice#ProductCode",
73                    "traits": {
74                        "smithy.api#documentation": "<p>The product code for which the given entitlement applies. Product codes are provided by\n   AWS Marketplace when the product listing is created.</p>"
75                    }
76                },
77                "Dimension": {
78                    "target": "com.amazonaws.marketplaceentitlementservice#NonEmptyString",
79                    "traits": {
80                        "smithy.api#documentation": "<p>The dimension for which the given entitlement applies. Dimensions represent categories of\n      capacity in a product and are specified when the product is listed in AWS\n      Marketplace.</p>"
81                    }
82                },
83                "CustomerIdentifier": {
84                    "target": "com.amazonaws.marketplaceentitlementservice#NonEmptyString",
85                    "traits": {
86                        "smithy.api#documentation": "<p>The customer identifier is a handle to each unique customer in an application. Customer\n   identifiers are obtained through the ResolveCustomer operation in AWS Marketplace Metering\n   Service.</p>"
87                    }
88                },
89                "Value": {
90                    "target": "com.amazonaws.marketplaceentitlementservice#EntitlementValue",
91                    "traits": {
92                        "smithy.api#documentation": "<p>The EntitlementValue represents the amount of capacity that the customer is entitled to\n   for the product.</p>"
93                    }
94                },
95                "ExpirationDate": {
96                    "target": "com.amazonaws.marketplaceentitlementservice#Timestamp",
97                    "traits": {
98                        "smithy.api#documentation": "<p>The expiration date represents the minimum date through which this entitlement is\n   expected to remain valid. For contractual products listed on AWS Marketplace, the expiration date\n   is the date at which the customer will renew or cancel their contract. Customers who are opting\n   to renew their contract will still have entitlements with an expiration date.</p>"
99                    }
100                }
101            },
102            "traits": {
103                "smithy.api#documentation": "<p>An entitlement represents capacity in a product owned by the customer. For example, a\n      customer might own some number of users or seats in an SaaS application or  some amount of\n      data capacity in a multi-tenant database.</p>"
104            }
105        },
106        "com.amazonaws.marketplaceentitlementservice#EntitlementList": {
107            "type": "list",
108            "member": {
109                "target": "com.amazonaws.marketplaceentitlementservice#Entitlement"
110            },
111            "traits": {
112                "smithy.api#length": {
113                    "min": 0
114                }
115            }
116        },
117        "com.amazonaws.marketplaceentitlementservice#EntitlementValue": {
118            "type": "union",
119            "members": {
120                "IntegerValue": {
121                    "target": "com.amazonaws.marketplaceentitlementservice#Integer",
122                    "traits": {
123                        "smithy.api#documentation": "<p>The IntegerValue field will be populated with an integer value when the entitlement is an\n   integer type. Otherwise, the field will not be set.</p>"
124                    }
125                },
126                "DoubleValue": {
127                    "target": "com.amazonaws.marketplaceentitlementservice#Double",
128                    "traits": {
129                        "smithy.api#documentation": "<p>The DoubleValue field will be populated with a double value when the entitlement is a\n   double type. Otherwise, the field will not be set.</p>"
130                    }
131                },
132                "BooleanValue": {
133                    "target": "com.amazonaws.marketplaceentitlementservice#Boolean",
134                    "traits": {
135                        "smithy.api#documentation": "<p>The BooleanValue field will be populated with a boolean value when the entitlement is a\n      boolean type. Otherwise, the field will not be set.</p>"
136                    }
137                },
138                "StringValue": {
139                    "target": "com.amazonaws.marketplaceentitlementservice#String",
140                    "traits": {
141                        "smithy.api#documentation": "<p>The StringValue field will be populated with a string value when the entitlement is a\n   string type. Otherwise, the field will not be set.</p>"
142                    }
143                }
144            },
145            "traits": {
146                "smithy.api#documentation": "<p>The EntitlementValue represents the amount of capacity that the customer is entitled to\n   for the product.</p>"
147            }
148        },
149        "com.amazonaws.marketplaceentitlementservice#ErrorMessage": {
150            "type": "string"
151        },
152        "com.amazonaws.marketplaceentitlementservice#FilterValue": {
153            "type": "string"
154        },
155        "com.amazonaws.marketplaceentitlementservice#FilterValueList": {
156            "type": "list",
157            "member": {
158                "target": "com.amazonaws.marketplaceentitlementservice#FilterValue"
159            },
160            "traits": {
161                "smithy.api#length": {
162                    "min": 1
163                }
164            }
165        },
166        "com.amazonaws.marketplaceentitlementservice#GetEntitlementFilterName": {
167            "type": "string",
168            "traits": {
169                "smithy.api#enum": [
170                    {
171                        "value": "CUSTOMER_IDENTIFIER",
172                        "name": "CUSTOMER_IDENTIFIER"
173                    },
174                    {
175                        "value": "DIMENSION",
176                        "name": "DIMENSION"
177                    }
178                ]
179            }
180        },
181        "com.amazonaws.marketplaceentitlementservice#GetEntitlementFilters": {
182            "type": "map",
183            "key": {
184                "target": "com.amazonaws.marketplaceentitlementservice#GetEntitlementFilterName"
185            },
186            "value": {
187                "target": "com.amazonaws.marketplaceentitlementservice#FilterValueList"
188            }
189        },
190        "com.amazonaws.marketplaceentitlementservice#GetEntitlements": {
191            "type": "operation",
192            "input": {
193                "target": "com.amazonaws.marketplaceentitlementservice#GetEntitlementsRequest"
194            },
195            "output": {
196                "target": "com.amazonaws.marketplaceentitlementservice#GetEntitlementsResult"
197            },
198            "errors": [
199                {
200                    "target": "com.amazonaws.marketplaceentitlementservice#InternalServiceErrorException"
201                },
202                {
203                    "target": "com.amazonaws.marketplaceentitlementservice#InvalidParameterException"
204                },
205                {
206                    "target": "com.amazonaws.marketplaceentitlementservice#ThrottlingException"
207                }
208            ],
209            "traits": {
210                "smithy.api#documentation": "<p>GetEntitlements retrieves entitlement values for a given product. The results can be\n      filtered based on customer identifier or product dimensions.</p>"
211            }
212        },
213        "com.amazonaws.marketplaceentitlementservice#GetEntitlementsRequest": {
214            "type": "structure",
215            "members": {
216                "ProductCode": {
217                    "target": "com.amazonaws.marketplaceentitlementservice#ProductCode",
218                    "traits": {
219                        "smithy.api#documentation": "<p>Product code is used to uniquely identify a product in AWS Marketplace. The product code\n   will be provided by AWS Marketplace when the product listing is created.</p>",
220                        "smithy.api#required": {}
221                    }
222                },
223                "Filter": {
224                    "target": "com.amazonaws.marketplaceentitlementservice#GetEntitlementFilters",
225                    "traits": {
226                        "smithy.api#documentation": "<p>Filter is used to return entitlements for a specific customer or for a specific\n      dimension. Filters are described as keys mapped to a lists of values. Filtered requests are\n        <i>unioned</i> for each value in the value list, and then\n        <i>intersected</i> for each filter key.</p>"
227                    }
228                },
229                "NextToken": {
230                    "target": "com.amazonaws.marketplaceentitlementservice#NonEmptyString",
231                    "traits": {
232                        "smithy.api#documentation": "<p>For paginated calls to GetEntitlements, pass the NextToken from the previous\n   GetEntitlementsResult.</p>"
233                    }
234                },
235                "MaxResults": {
236                    "target": "com.amazonaws.marketplaceentitlementservice#Integer",
237                    "traits": {
238                        "smithy.api#documentation": "<p>The maximum number of items to retrieve from the GetEntitlements operation. For\n   pagination, use the NextToken field in subsequent calls to GetEntitlements.</p>"
239                    }
240                }
241            },
242            "traits": {
243                "smithy.api#documentation": "<p>The GetEntitlementsRequest contains parameters for the GetEntitlements\n   operation.</p>"
244            }
245        },
246        "com.amazonaws.marketplaceentitlementservice#GetEntitlementsResult": {
247            "type": "structure",
248            "members": {
249                "Entitlements": {
250                    "target": "com.amazonaws.marketplaceentitlementservice#EntitlementList",
251                    "traits": {
252                        "smithy.api#documentation": "<p>The set of entitlements found through the GetEntitlements operation. If the result\n      contains an empty set of entitlements, NextToken might still be present and should be\n      used.</p>"
253                    }
254                },
255                "NextToken": {
256                    "target": "com.amazonaws.marketplaceentitlementservice#NonEmptyString",
257                    "traits": {
258                        "smithy.api#documentation": "<p>For paginated results, use NextToken in subsequent calls to GetEntitlements. If the\n      result contains an empty set of entitlements, NextToken might still be present and should be\n      used.</p>"
259                    }
260                }
261            },
262            "traits": {
263                "smithy.api#documentation": "<p>The GetEntitlementsRequest contains results from the GetEntitlements operation.</p>"
264            }
265        },
266        "com.amazonaws.marketplaceentitlementservice#Integer": {
267            "type": "integer",
268            "traits": {
269                "smithy.api#box": {}
270            }
271        },
272        "com.amazonaws.marketplaceentitlementservice#InternalServiceErrorException": {
273            "type": "structure",
274            "members": {
275                "message": {
276                    "target": "com.amazonaws.marketplaceentitlementservice#ErrorMessage"
277                }
278            },
279            "traits": {
280                "smithy.api#documentation": "<p>An internal error has occurred. Retry your request. If the problem persists, post a\n   message with details on the AWS forums.</p>",
281                "smithy.api#error": "server"
282            }
283        },
284        "com.amazonaws.marketplaceentitlementservice#InvalidParameterException": {
285            "type": "structure",
286            "members": {
287                "message": {
288                    "target": "com.amazonaws.marketplaceentitlementservice#ErrorMessage"
289                }
290            },
291            "traits": {
292                "smithy.api#documentation": "<p>One or more parameters in your request was invalid.</p>",
293                "smithy.api#error": "client"
294            }
295        },
296        "com.amazonaws.marketplaceentitlementservice#NonEmptyString": {
297            "type": "string",
298            "traits": {
299                "smithy.api#pattern": "\\S+"
300            }
301        },
302        "com.amazonaws.marketplaceentitlementservice#ProductCode": {
303            "type": "string",
304            "traits": {
305                "smithy.api#length": {
306                    "min": 1,
307                    "max": 255
308                }
309            }
310        },
311        "com.amazonaws.marketplaceentitlementservice#String": {
312            "type": "string"
313        },
314        "com.amazonaws.marketplaceentitlementservice#ThrottlingException": {
315            "type": "structure",
316            "members": {
317                "message": {
318                    "target": "com.amazonaws.marketplaceentitlementservice#ErrorMessage"
319                }
320            },
321            "traits": {
322                "smithy.api#documentation": "<p>The calls to the GetEntitlements API are throttled.</p>",
323                "smithy.api#error": "client"
324            }
325        },
326        "com.amazonaws.marketplaceentitlementservice#Timestamp": {
327            "type": "timestamp"
328        }
329    }
330}
331