aws-sdk-savingsplans 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,472 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws::SavingsPlans
9
+ # @api private
10
+ module ClientApi
11
+
12
+ include Seahorse::Model
13
+
14
+ Amount = Shapes::StringShape.new(name: 'Amount')
15
+ ClientToken = Shapes::StringShape.new(name: 'ClientToken')
16
+ CreateSavingsPlanRequest = Shapes::StructureShape.new(name: 'CreateSavingsPlanRequest')
17
+ CreateSavingsPlanResponse = Shapes::StructureShape.new(name: 'CreateSavingsPlanResponse')
18
+ CurrencyCode = Shapes::StringShape.new(name: 'CurrencyCode')
19
+ CurrencyList = Shapes::ListShape.new(name: 'CurrencyList')
20
+ DescribeSavingsPlanRatesRequest = Shapes::StructureShape.new(name: 'DescribeSavingsPlanRatesRequest')
21
+ DescribeSavingsPlanRatesResponse = Shapes::StructureShape.new(name: 'DescribeSavingsPlanRatesResponse')
22
+ DescribeSavingsPlansOfferingRatesRequest = Shapes::StructureShape.new(name: 'DescribeSavingsPlansOfferingRatesRequest')
23
+ DescribeSavingsPlansOfferingRatesResponse = Shapes::StructureShape.new(name: 'DescribeSavingsPlansOfferingRatesResponse')
24
+ DescribeSavingsPlansOfferingsRequest = Shapes::StructureShape.new(name: 'DescribeSavingsPlansOfferingsRequest')
25
+ DescribeSavingsPlansOfferingsResponse = Shapes::StructureShape.new(name: 'DescribeSavingsPlansOfferingsResponse')
26
+ DescribeSavingsPlansRequest = Shapes::StructureShape.new(name: 'DescribeSavingsPlansRequest')
27
+ DescribeSavingsPlansResponse = Shapes::StructureShape.new(name: 'DescribeSavingsPlansResponse')
28
+ DurationsList = Shapes::ListShape.new(name: 'DurationsList')
29
+ EC2InstanceFamily = Shapes::StringShape.new(name: 'EC2InstanceFamily')
30
+ FilterValuesList = Shapes::ListShape.new(name: 'FilterValuesList')
31
+ InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
32
+ JsonSafeFilterValueString = Shapes::StringShape.new(name: 'JsonSafeFilterValueString')
33
+ ListOfStrings = Shapes::ListShape.new(name: 'ListOfStrings')
34
+ ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
35
+ ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
36
+ MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
37
+ PageSize = Shapes::IntegerShape.new(name: 'PageSize')
38
+ PaginationToken = Shapes::StringShape.new(name: 'PaginationToken')
39
+ ParentSavingsPlanOffering = Shapes::StructureShape.new(name: 'ParentSavingsPlanOffering')
40
+ Region = Shapes::StringShape.new(name: 'Region')
41
+ ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
42
+ SavingsPlan = Shapes::StructureShape.new(name: 'SavingsPlan')
43
+ SavingsPlanArn = Shapes::StringShape.new(name: 'SavingsPlanArn')
44
+ SavingsPlanArnList = Shapes::ListShape.new(name: 'SavingsPlanArnList')
45
+ SavingsPlanDescription = Shapes::StringShape.new(name: 'SavingsPlanDescription')
46
+ SavingsPlanDescriptionsList = Shapes::ListShape.new(name: 'SavingsPlanDescriptionsList')
47
+ SavingsPlanFilter = Shapes::StructureShape.new(name: 'SavingsPlanFilter')
48
+ SavingsPlanFilterList = Shapes::ListShape.new(name: 'SavingsPlanFilterList')
49
+ SavingsPlanId = Shapes::StringShape.new(name: 'SavingsPlanId')
50
+ SavingsPlanIdList = Shapes::ListShape.new(name: 'SavingsPlanIdList')
51
+ SavingsPlanList = Shapes::ListShape.new(name: 'SavingsPlanList')
52
+ SavingsPlanOffering = Shapes::StructureShape.new(name: 'SavingsPlanOffering')
53
+ SavingsPlanOfferingFilterAttribute = Shapes::StringShape.new(name: 'SavingsPlanOfferingFilterAttribute')
54
+ SavingsPlanOfferingFilterElement = Shapes::StructureShape.new(name: 'SavingsPlanOfferingFilterElement')
55
+ SavingsPlanOfferingFiltersList = Shapes::ListShape.new(name: 'SavingsPlanOfferingFiltersList')
56
+ SavingsPlanOfferingId = Shapes::StringShape.new(name: 'SavingsPlanOfferingId')
57
+ SavingsPlanOfferingProperty = Shapes::StructureShape.new(name: 'SavingsPlanOfferingProperty')
58
+ SavingsPlanOfferingPropertyKey = Shapes::StringShape.new(name: 'SavingsPlanOfferingPropertyKey')
59
+ SavingsPlanOfferingPropertyList = Shapes::ListShape.new(name: 'SavingsPlanOfferingPropertyList')
60
+ SavingsPlanOfferingRate = Shapes::StructureShape.new(name: 'SavingsPlanOfferingRate')
61
+ SavingsPlanOfferingRateFilterElement = Shapes::StructureShape.new(name: 'SavingsPlanOfferingRateFilterElement')
62
+ SavingsPlanOfferingRateFiltersList = Shapes::ListShape.new(name: 'SavingsPlanOfferingRateFiltersList')
63
+ SavingsPlanOfferingRateProperty = Shapes::StructureShape.new(name: 'SavingsPlanOfferingRateProperty')
64
+ SavingsPlanOfferingRatePropertyList = Shapes::ListShape.new(name: 'SavingsPlanOfferingRatePropertyList')
65
+ SavingsPlanOfferingRatesList = Shapes::ListShape.new(name: 'SavingsPlanOfferingRatesList')
66
+ SavingsPlanOfferingsList = Shapes::ListShape.new(name: 'SavingsPlanOfferingsList')
67
+ SavingsPlanOperation = Shapes::StringShape.new(name: 'SavingsPlanOperation')
68
+ SavingsPlanOperationList = Shapes::ListShape.new(name: 'SavingsPlanOperationList')
69
+ SavingsPlanPaymentOption = Shapes::StringShape.new(name: 'SavingsPlanPaymentOption')
70
+ SavingsPlanPaymentOptionList = Shapes::ListShape.new(name: 'SavingsPlanPaymentOptionList')
71
+ SavingsPlanProductType = Shapes::StringShape.new(name: 'SavingsPlanProductType')
72
+ SavingsPlanProductTypeList = Shapes::ListShape.new(name: 'SavingsPlanProductTypeList')
73
+ SavingsPlanRate = Shapes::StructureShape.new(name: 'SavingsPlanRate')
74
+ SavingsPlanRateFilter = Shapes::StructureShape.new(name: 'SavingsPlanRateFilter')
75
+ SavingsPlanRateFilterAttribute = Shapes::StringShape.new(name: 'SavingsPlanRateFilterAttribute')
76
+ SavingsPlanRateFilterList = Shapes::ListShape.new(name: 'SavingsPlanRateFilterList')
77
+ SavingsPlanRateFilterName = Shapes::StringShape.new(name: 'SavingsPlanRateFilterName')
78
+ SavingsPlanRateList = Shapes::ListShape.new(name: 'SavingsPlanRateList')
79
+ SavingsPlanRateOperation = Shapes::StringShape.new(name: 'SavingsPlanRateOperation')
80
+ SavingsPlanRateOperationList = Shapes::ListShape.new(name: 'SavingsPlanRateOperationList')
81
+ SavingsPlanRatePricePerUnit = Shapes::StringShape.new(name: 'SavingsPlanRatePricePerUnit')
82
+ SavingsPlanRateProperty = Shapes::StructureShape.new(name: 'SavingsPlanRateProperty')
83
+ SavingsPlanRatePropertyKey = Shapes::StringShape.new(name: 'SavingsPlanRatePropertyKey')
84
+ SavingsPlanRatePropertyList = Shapes::ListShape.new(name: 'SavingsPlanRatePropertyList')
85
+ SavingsPlanRateServiceCode = Shapes::StringShape.new(name: 'SavingsPlanRateServiceCode')
86
+ SavingsPlanRateServiceCodeList = Shapes::ListShape.new(name: 'SavingsPlanRateServiceCodeList')
87
+ SavingsPlanRateUnit = Shapes::StringShape.new(name: 'SavingsPlanRateUnit')
88
+ SavingsPlanRateUsageType = Shapes::StringShape.new(name: 'SavingsPlanRateUsageType')
89
+ SavingsPlanRateUsageTypeList = Shapes::ListShape.new(name: 'SavingsPlanRateUsageTypeList')
90
+ SavingsPlanServiceCode = Shapes::StringShape.new(name: 'SavingsPlanServiceCode')
91
+ SavingsPlanServiceCodeList = Shapes::ListShape.new(name: 'SavingsPlanServiceCodeList')
92
+ SavingsPlanState = Shapes::StringShape.new(name: 'SavingsPlanState')
93
+ SavingsPlanStateList = Shapes::ListShape.new(name: 'SavingsPlanStateList')
94
+ SavingsPlanType = Shapes::StringShape.new(name: 'SavingsPlanType')
95
+ SavingsPlanTypeList = Shapes::ListShape.new(name: 'SavingsPlanTypeList')
96
+ SavingsPlanUsageType = Shapes::StringShape.new(name: 'SavingsPlanUsageType')
97
+ SavingsPlanUsageTypeList = Shapes::ListShape.new(name: 'SavingsPlanUsageTypeList')
98
+ SavingsPlansDuration = Shapes::IntegerShape.new(name: 'SavingsPlansDuration')
99
+ SavingsPlansFilterName = Shapes::StringShape.new(name: 'SavingsPlansFilterName')
100
+ ServiceQuotaExceededException = Shapes::StructureShape.new(name: 'ServiceQuotaExceededException')
101
+ String = Shapes::StringShape.new(name: 'String')
102
+ TagKey = Shapes::StringShape.new(name: 'TagKey')
103
+ TagKeyList = Shapes::ListShape.new(name: 'TagKeyList')
104
+ TagMap = Shapes::MapShape.new(name: 'TagMap')
105
+ TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest')
106
+ TagResourceResponse = Shapes::StructureShape.new(name: 'TagResourceResponse')
107
+ TagValue = Shapes::StringShape.new(name: 'TagValue')
108
+ TermDurationInSeconds = Shapes::IntegerShape.new(name: 'TermDurationInSeconds')
109
+ UUID = Shapes::StringShape.new(name: 'UUID')
110
+ UUIDs = Shapes::ListShape.new(name: 'UUIDs')
111
+ UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
112
+ UntagResourceResponse = Shapes::StructureShape.new(name: 'UntagResourceResponse')
113
+ ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
114
+
115
+ CreateSavingsPlanRequest.add_member(:savings_plan_offering_id, Shapes::ShapeRef.new(shape: SavingsPlanOfferingId, required: true, location_name: "savingsPlanOfferingId"))
116
+ CreateSavingsPlanRequest.add_member(:commitment, Shapes::ShapeRef.new(shape: Amount, required: true, location_name: "commitment"))
117
+ CreateSavingsPlanRequest.add_member(:upfront_payment_amount, Shapes::ShapeRef.new(shape: Amount, location_name: "upfrontPaymentAmount"))
118
+ CreateSavingsPlanRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientToken, location_name: "clientToken", metadata: {"idempotencyToken"=>true}))
119
+ CreateSavingsPlanRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
120
+ CreateSavingsPlanRequest.struct_class = Types::CreateSavingsPlanRequest
121
+
122
+ CreateSavingsPlanResponse.add_member(:savings_plan_id, Shapes::ShapeRef.new(shape: SavingsPlanId, location_name: "savingsPlanId"))
123
+ CreateSavingsPlanResponse.struct_class = Types::CreateSavingsPlanResponse
124
+
125
+ CurrencyList.member = Shapes::ShapeRef.new(shape: CurrencyCode)
126
+
127
+ DescribeSavingsPlanRatesRequest.add_member(:savings_plan_id, Shapes::ShapeRef.new(shape: SavingsPlanId, required: true, location_name: "savingsPlanId"))
128
+ DescribeSavingsPlanRatesRequest.add_member(:filters, Shapes::ShapeRef.new(shape: SavingsPlanRateFilterList, location_name: "filters"))
129
+ DescribeSavingsPlanRatesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "nextToken"))
130
+ DescribeSavingsPlanRatesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "maxResults"))
131
+ DescribeSavingsPlanRatesRequest.struct_class = Types::DescribeSavingsPlanRatesRequest
132
+
133
+ DescribeSavingsPlanRatesResponse.add_member(:savings_plan_id, Shapes::ShapeRef.new(shape: SavingsPlanId, location_name: "savingsPlanId"))
134
+ DescribeSavingsPlanRatesResponse.add_member(:search_results, Shapes::ShapeRef.new(shape: SavingsPlanRateList, location_name: "searchResults"))
135
+ DescribeSavingsPlanRatesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "nextToken"))
136
+ DescribeSavingsPlanRatesResponse.struct_class = Types::DescribeSavingsPlanRatesResponse
137
+
138
+ DescribeSavingsPlansOfferingRatesRequest.add_member(:savings_plan_offering_ids, Shapes::ShapeRef.new(shape: UUIDs, location_name: "savingsPlanOfferingIds"))
139
+ DescribeSavingsPlansOfferingRatesRequest.add_member(:savings_plan_payment_options, Shapes::ShapeRef.new(shape: SavingsPlanPaymentOptionList, location_name: "savingsPlanPaymentOptions"))
140
+ DescribeSavingsPlansOfferingRatesRequest.add_member(:savings_plan_types, Shapes::ShapeRef.new(shape: SavingsPlanTypeList, location_name: "savingsPlanTypes"))
141
+ DescribeSavingsPlansOfferingRatesRequest.add_member(:products, Shapes::ShapeRef.new(shape: SavingsPlanProductTypeList, location_name: "products"))
142
+ DescribeSavingsPlansOfferingRatesRequest.add_member(:service_codes, Shapes::ShapeRef.new(shape: SavingsPlanRateServiceCodeList, location_name: "serviceCodes"))
143
+ DescribeSavingsPlansOfferingRatesRequest.add_member(:usage_types, Shapes::ShapeRef.new(shape: SavingsPlanRateUsageTypeList, location_name: "usageTypes"))
144
+ DescribeSavingsPlansOfferingRatesRequest.add_member(:operations, Shapes::ShapeRef.new(shape: SavingsPlanRateOperationList, location_name: "operations"))
145
+ DescribeSavingsPlansOfferingRatesRequest.add_member(:filters, Shapes::ShapeRef.new(shape: SavingsPlanOfferingRateFiltersList, location_name: "filters"))
146
+ DescribeSavingsPlansOfferingRatesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "nextToken"))
147
+ DescribeSavingsPlansOfferingRatesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: PageSize, location_name: "maxResults"))
148
+ DescribeSavingsPlansOfferingRatesRequest.struct_class = Types::DescribeSavingsPlansOfferingRatesRequest
149
+
150
+ DescribeSavingsPlansOfferingRatesResponse.add_member(:search_results, Shapes::ShapeRef.new(shape: SavingsPlanOfferingRatesList, location_name: "searchResults"))
151
+ DescribeSavingsPlansOfferingRatesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "nextToken"))
152
+ DescribeSavingsPlansOfferingRatesResponse.struct_class = Types::DescribeSavingsPlansOfferingRatesResponse
153
+
154
+ DescribeSavingsPlansOfferingsRequest.add_member(:offering_ids, Shapes::ShapeRef.new(shape: UUIDs, location_name: "offeringIds"))
155
+ DescribeSavingsPlansOfferingsRequest.add_member(:payment_options, Shapes::ShapeRef.new(shape: SavingsPlanPaymentOptionList, location_name: "paymentOptions"))
156
+ DescribeSavingsPlansOfferingsRequest.add_member(:product_type, Shapes::ShapeRef.new(shape: SavingsPlanProductType, location_name: "productType"))
157
+ DescribeSavingsPlansOfferingsRequest.add_member(:plan_types, Shapes::ShapeRef.new(shape: SavingsPlanTypeList, location_name: "planTypes"))
158
+ DescribeSavingsPlansOfferingsRequest.add_member(:durations, Shapes::ShapeRef.new(shape: DurationsList, location_name: "durations"))
159
+ DescribeSavingsPlansOfferingsRequest.add_member(:currencies, Shapes::ShapeRef.new(shape: CurrencyList, location_name: "currencies"))
160
+ DescribeSavingsPlansOfferingsRequest.add_member(:descriptions, Shapes::ShapeRef.new(shape: SavingsPlanDescriptionsList, location_name: "descriptions"))
161
+ DescribeSavingsPlansOfferingsRequest.add_member(:service_codes, Shapes::ShapeRef.new(shape: SavingsPlanServiceCodeList, location_name: "serviceCodes"))
162
+ DescribeSavingsPlansOfferingsRequest.add_member(:usage_types, Shapes::ShapeRef.new(shape: SavingsPlanUsageTypeList, location_name: "usageTypes"))
163
+ DescribeSavingsPlansOfferingsRequest.add_member(:operations, Shapes::ShapeRef.new(shape: SavingsPlanOperationList, location_name: "operations"))
164
+ DescribeSavingsPlansOfferingsRequest.add_member(:filters, Shapes::ShapeRef.new(shape: SavingsPlanOfferingFiltersList, location_name: "filters"))
165
+ DescribeSavingsPlansOfferingsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "nextToken"))
166
+ DescribeSavingsPlansOfferingsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: PageSize, location_name: "maxResults"))
167
+ DescribeSavingsPlansOfferingsRequest.struct_class = Types::DescribeSavingsPlansOfferingsRequest
168
+
169
+ DescribeSavingsPlansOfferingsResponse.add_member(:search_results, Shapes::ShapeRef.new(shape: SavingsPlanOfferingsList, location_name: "searchResults"))
170
+ DescribeSavingsPlansOfferingsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "nextToken"))
171
+ DescribeSavingsPlansOfferingsResponse.struct_class = Types::DescribeSavingsPlansOfferingsResponse
172
+
173
+ DescribeSavingsPlansRequest.add_member(:savings_plan_arns, Shapes::ShapeRef.new(shape: SavingsPlanArnList, location_name: "savingsPlanArns"))
174
+ DescribeSavingsPlansRequest.add_member(:savings_plan_ids, Shapes::ShapeRef.new(shape: SavingsPlanIdList, location_name: "savingsPlanIds"))
175
+ DescribeSavingsPlansRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "nextToken"))
176
+ DescribeSavingsPlansRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "maxResults"))
177
+ DescribeSavingsPlansRequest.add_member(:states, Shapes::ShapeRef.new(shape: SavingsPlanStateList, location_name: "states"))
178
+ DescribeSavingsPlansRequest.add_member(:filters, Shapes::ShapeRef.new(shape: SavingsPlanFilterList, location_name: "filters"))
179
+ DescribeSavingsPlansRequest.struct_class = Types::DescribeSavingsPlansRequest
180
+
181
+ DescribeSavingsPlansResponse.add_member(:savings_plans, Shapes::ShapeRef.new(shape: SavingsPlanList, location_name: "savingsPlans"))
182
+ DescribeSavingsPlansResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "nextToken"))
183
+ DescribeSavingsPlansResponse.struct_class = Types::DescribeSavingsPlansResponse
184
+
185
+ DurationsList.member = Shapes::ShapeRef.new(shape: SavingsPlansDuration)
186
+
187
+ FilterValuesList.member = Shapes::ShapeRef.new(shape: JsonSafeFilterValueString)
188
+
189
+ InternalServerException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
190
+ InternalServerException.struct_class = Types::InternalServerException
191
+
192
+ ListOfStrings.member = Shapes::ShapeRef.new(shape: String)
193
+
194
+ ListTagsForResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: SavingsPlanArn, required: true, location_name: "resourceArn"))
195
+ ListTagsForResourceRequest.struct_class = Types::ListTagsForResourceRequest
196
+
197
+ ListTagsForResourceResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
198
+ ListTagsForResourceResponse.struct_class = Types::ListTagsForResourceResponse
199
+
200
+ ParentSavingsPlanOffering.add_member(:offering_id, Shapes::ShapeRef.new(shape: UUID, location_name: "offeringId"))
201
+ ParentSavingsPlanOffering.add_member(:payment_option, Shapes::ShapeRef.new(shape: SavingsPlanPaymentOption, location_name: "paymentOption"))
202
+ ParentSavingsPlanOffering.add_member(:plan_type, Shapes::ShapeRef.new(shape: SavingsPlanType, location_name: "planType"))
203
+ ParentSavingsPlanOffering.add_member(:duration_seconds, Shapes::ShapeRef.new(shape: SavingsPlansDuration, location_name: "durationSeconds"))
204
+ ParentSavingsPlanOffering.add_member(:currency, Shapes::ShapeRef.new(shape: CurrencyCode, location_name: "currency"))
205
+ ParentSavingsPlanOffering.add_member(:plan_description, Shapes::ShapeRef.new(shape: SavingsPlanDescription, location_name: "planDescription"))
206
+ ParentSavingsPlanOffering.struct_class = Types::ParentSavingsPlanOffering
207
+
208
+ ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
209
+ ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
210
+
211
+ SavingsPlan.add_member(:offering_id, Shapes::ShapeRef.new(shape: SavingsPlanOfferingId, location_name: "offeringId"))
212
+ SavingsPlan.add_member(:savings_plan_id, Shapes::ShapeRef.new(shape: SavingsPlanId, location_name: "savingsPlanId"))
213
+ SavingsPlan.add_member(:savings_plan_arn, Shapes::ShapeRef.new(shape: SavingsPlanArn, location_name: "savingsPlanArn"))
214
+ SavingsPlan.add_member(:description, Shapes::ShapeRef.new(shape: String, location_name: "description"))
215
+ SavingsPlan.add_member(:start, Shapes::ShapeRef.new(shape: String, location_name: "start"))
216
+ SavingsPlan.add_member(:end, Shapes::ShapeRef.new(shape: String, location_name: "end"))
217
+ SavingsPlan.add_member(:state, Shapes::ShapeRef.new(shape: SavingsPlanState, location_name: "state"))
218
+ SavingsPlan.add_member(:region, Shapes::ShapeRef.new(shape: Region, location_name: "region"))
219
+ SavingsPlan.add_member(:ec2_instance_family, Shapes::ShapeRef.new(shape: EC2InstanceFamily, location_name: "ec2InstanceFamily"))
220
+ SavingsPlan.add_member(:savings_plan_type, Shapes::ShapeRef.new(shape: SavingsPlanType, location_name: "savingsPlanType"))
221
+ SavingsPlan.add_member(:payment_option, Shapes::ShapeRef.new(shape: SavingsPlanPaymentOption, location_name: "paymentOption"))
222
+ SavingsPlan.add_member(:product_types, Shapes::ShapeRef.new(shape: SavingsPlanProductTypeList, location_name: "productTypes"))
223
+ SavingsPlan.add_member(:currency, Shapes::ShapeRef.new(shape: CurrencyCode, location_name: "currency"))
224
+ SavingsPlan.add_member(:commitment, Shapes::ShapeRef.new(shape: Amount, location_name: "commitment"))
225
+ SavingsPlan.add_member(:upfront_payment_amount, Shapes::ShapeRef.new(shape: Amount, location_name: "upfrontPaymentAmount"))
226
+ SavingsPlan.add_member(:recurring_payment_amount, Shapes::ShapeRef.new(shape: Amount, location_name: "recurringPaymentAmount"))
227
+ SavingsPlan.add_member(:term_duration_in_seconds, Shapes::ShapeRef.new(shape: TermDurationInSeconds, location_name: "termDurationInSeconds"))
228
+ SavingsPlan.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
229
+ SavingsPlan.struct_class = Types::SavingsPlan
230
+
231
+ SavingsPlanArnList.member = Shapes::ShapeRef.new(shape: SavingsPlanArn)
232
+
233
+ SavingsPlanDescriptionsList.member = Shapes::ShapeRef.new(shape: SavingsPlanDescription)
234
+
235
+ SavingsPlanFilter.add_member(:name, Shapes::ShapeRef.new(shape: SavingsPlansFilterName, location_name: "name"))
236
+ SavingsPlanFilter.add_member(:values, Shapes::ShapeRef.new(shape: ListOfStrings, location_name: "values"))
237
+ SavingsPlanFilter.struct_class = Types::SavingsPlanFilter
238
+
239
+ SavingsPlanFilterList.member = Shapes::ShapeRef.new(shape: SavingsPlanFilter)
240
+
241
+ SavingsPlanIdList.member = Shapes::ShapeRef.new(shape: SavingsPlanId)
242
+
243
+ SavingsPlanList.member = Shapes::ShapeRef.new(shape: SavingsPlan)
244
+
245
+ SavingsPlanOffering.add_member(:offering_id, Shapes::ShapeRef.new(shape: UUID, location_name: "offeringId"))
246
+ SavingsPlanOffering.add_member(:product_types, Shapes::ShapeRef.new(shape: SavingsPlanProductTypeList, location_name: "productTypes"))
247
+ SavingsPlanOffering.add_member(:plan_type, Shapes::ShapeRef.new(shape: SavingsPlanType, location_name: "planType"))
248
+ SavingsPlanOffering.add_member(:description, Shapes::ShapeRef.new(shape: SavingsPlanDescription, location_name: "description"))
249
+ SavingsPlanOffering.add_member(:payment_option, Shapes::ShapeRef.new(shape: SavingsPlanPaymentOption, location_name: "paymentOption"))
250
+ SavingsPlanOffering.add_member(:duration_seconds, Shapes::ShapeRef.new(shape: SavingsPlansDuration, location_name: "durationSeconds"))
251
+ SavingsPlanOffering.add_member(:currency, Shapes::ShapeRef.new(shape: CurrencyCode, location_name: "currency"))
252
+ SavingsPlanOffering.add_member(:service_code, Shapes::ShapeRef.new(shape: SavingsPlanServiceCode, location_name: "serviceCode"))
253
+ SavingsPlanOffering.add_member(:usage_type, Shapes::ShapeRef.new(shape: SavingsPlanUsageType, location_name: "usageType"))
254
+ SavingsPlanOffering.add_member(:operation, Shapes::ShapeRef.new(shape: SavingsPlanOperation, location_name: "operation"))
255
+ SavingsPlanOffering.add_member(:properties, Shapes::ShapeRef.new(shape: SavingsPlanOfferingPropertyList, location_name: "properties"))
256
+ SavingsPlanOffering.struct_class = Types::SavingsPlanOffering
257
+
258
+ SavingsPlanOfferingFilterElement.add_member(:name, Shapes::ShapeRef.new(shape: SavingsPlanOfferingFilterAttribute, location_name: "name"))
259
+ SavingsPlanOfferingFilterElement.add_member(:values, Shapes::ShapeRef.new(shape: FilterValuesList, location_name: "values"))
260
+ SavingsPlanOfferingFilterElement.struct_class = Types::SavingsPlanOfferingFilterElement
261
+
262
+ SavingsPlanOfferingFiltersList.member = Shapes::ShapeRef.new(shape: SavingsPlanOfferingFilterElement)
263
+
264
+ SavingsPlanOfferingProperty.add_member(:name, Shapes::ShapeRef.new(shape: SavingsPlanOfferingPropertyKey, location_name: "name"))
265
+ SavingsPlanOfferingProperty.add_member(:value, Shapes::ShapeRef.new(shape: JsonSafeFilterValueString, location_name: "value"))
266
+ SavingsPlanOfferingProperty.struct_class = Types::SavingsPlanOfferingProperty
267
+
268
+ SavingsPlanOfferingPropertyList.member = Shapes::ShapeRef.new(shape: SavingsPlanOfferingProperty)
269
+
270
+ SavingsPlanOfferingRate.add_member(:savings_plan_offering, Shapes::ShapeRef.new(shape: ParentSavingsPlanOffering, location_name: "savingsPlanOffering"))
271
+ SavingsPlanOfferingRate.add_member(:rate, Shapes::ShapeRef.new(shape: SavingsPlanRatePricePerUnit, location_name: "rate"))
272
+ SavingsPlanOfferingRate.add_member(:unit, Shapes::ShapeRef.new(shape: SavingsPlanRateUnit, location_name: "unit"))
273
+ SavingsPlanOfferingRate.add_member(:product_type, Shapes::ShapeRef.new(shape: SavingsPlanProductType, location_name: "productType"))
274
+ SavingsPlanOfferingRate.add_member(:service_code, Shapes::ShapeRef.new(shape: SavingsPlanRateServiceCode, location_name: "serviceCode"))
275
+ SavingsPlanOfferingRate.add_member(:usage_type, Shapes::ShapeRef.new(shape: SavingsPlanRateUsageType, location_name: "usageType"))
276
+ SavingsPlanOfferingRate.add_member(:operation, Shapes::ShapeRef.new(shape: SavingsPlanRateOperation, location_name: "operation"))
277
+ SavingsPlanOfferingRate.add_member(:properties, Shapes::ShapeRef.new(shape: SavingsPlanOfferingRatePropertyList, location_name: "properties"))
278
+ SavingsPlanOfferingRate.struct_class = Types::SavingsPlanOfferingRate
279
+
280
+ SavingsPlanOfferingRateFilterElement.add_member(:name, Shapes::ShapeRef.new(shape: SavingsPlanRateFilterAttribute, location_name: "name"))
281
+ SavingsPlanOfferingRateFilterElement.add_member(:values, Shapes::ShapeRef.new(shape: FilterValuesList, location_name: "values"))
282
+ SavingsPlanOfferingRateFilterElement.struct_class = Types::SavingsPlanOfferingRateFilterElement
283
+
284
+ SavingsPlanOfferingRateFiltersList.member = Shapes::ShapeRef.new(shape: SavingsPlanOfferingRateFilterElement)
285
+
286
+ SavingsPlanOfferingRateProperty.add_member(:name, Shapes::ShapeRef.new(shape: JsonSafeFilterValueString, location_name: "name"))
287
+ SavingsPlanOfferingRateProperty.add_member(:value, Shapes::ShapeRef.new(shape: JsonSafeFilterValueString, location_name: "value"))
288
+ SavingsPlanOfferingRateProperty.struct_class = Types::SavingsPlanOfferingRateProperty
289
+
290
+ SavingsPlanOfferingRatePropertyList.member = Shapes::ShapeRef.new(shape: SavingsPlanOfferingRateProperty)
291
+
292
+ SavingsPlanOfferingRatesList.member = Shapes::ShapeRef.new(shape: SavingsPlanOfferingRate)
293
+
294
+ SavingsPlanOfferingsList.member = Shapes::ShapeRef.new(shape: SavingsPlanOffering)
295
+
296
+ SavingsPlanOperationList.member = Shapes::ShapeRef.new(shape: SavingsPlanOperation)
297
+
298
+ SavingsPlanPaymentOptionList.member = Shapes::ShapeRef.new(shape: SavingsPlanPaymentOption)
299
+
300
+ SavingsPlanProductTypeList.member = Shapes::ShapeRef.new(shape: SavingsPlanProductType)
301
+
302
+ SavingsPlanRate.add_member(:rate, Shapes::ShapeRef.new(shape: Amount, location_name: "rate"))
303
+ SavingsPlanRate.add_member(:currency, Shapes::ShapeRef.new(shape: CurrencyCode, location_name: "currency"))
304
+ SavingsPlanRate.add_member(:unit, Shapes::ShapeRef.new(shape: SavingsPlanRateUnit, location_name: "unit"))
305
+ SavingsPlanRate.add_member(:product_type, Shapes::ShapeRef.new(shape: SavingsPlanProductType, location_name: "productType"))
306
+ SavingsPlanRate.add_member(:service_code, Shapes::ShapeRef.new(shape: SavingsPlanRateServiceCode, location_name: "serviceCode"))
307
+ SavingsPlanRate.add_member(:usage_type, Shapes::ShapeRef.new(shape: SavingsPlanRateUsageType, location_name: "usageType"))
308
+ SavingsPlanRate.add_member(:operation, Shapes::ShapeRef.new(shape: SavingsPlanRateOperation, location_name: "operation"))
309
+ SavingsPlanRate.add_member(:properties, Shapes::ShapeRef.new(shape: SavingsPlanRatePropertyList, location_name: "properties"))
310
+ SavingsPlanRate.struct_class = Types::SavingsPlanRate
311
+
312
+ SavingsPlanRateFilter.add_member(:name, Shapes::ShapeRef.new(shape: SavingsPlanRateFilterName, location_name: "name"))
313
+ SavingsPlanRateFilter.add_member(:values, Shapes::ShapeRef.new(shape: ListOfStrings, location_name: "values"))
314
+ SavingsPlanRateFilter.struct_class = Types::SavingsPlanRateFilter
315
+
316
+ SavingsPlanRateFilterList.member = Shapes::ShapeRef.new(shape: SavingsPlanRateFilter)
317
+
318
+ SavingsPlanRateList.member = Shapes::ShapeRef.new(shape: SavingsPlanRate)
319
+
320
+ SavingsPlanRateOperationList.member = Shapes::ShapeRef.new(shape: SavingsPlanRateOperation)
321
+
322
+ SavingsPlanRateProperty.add_member(:name, Shapes::ShapeRef.new(shape: SavingsPlanRatePropertyKey, location_name: "name"))
323
+ SavingsPlanRateProperty.add_member(:value, Shapes::ShapeRef.new(shape: JsonSafeFilterValueString, location_name: "value"))
324
+ SavingsPlanRateProperty.struct_class = Types::SavingsPlanRateProperty
325
+
326
+ SavingsPlanRatePropertyList.member = Shapes::ShapeRef.new(shape: SavingsPlanRateProperty)
327
+
328
+ SavingsPlanRateServiceCodeList.member = Shapes::ShapeRef.new(shape: SavingsPlanRateServiceCode)
329
+
330
+ SavingsPlanRateUsageTypeList.member = Shapes::ShapeRef.new(shape: SavingsPlanRateUsageType)
331
+
332
+ SavingsPlanServiceCodeList.member = Shapes::ShapeRef.new(shape: SavingsPlanServiceCode)
333
+
334
+ SavingsPlanStateList.member = Shapes::ShapeRef.new(shape: SavingsPlanState)
335
+
336
+ SavingsPlanTypeList.member = Shapes::ShapeRef.new(shape: SavingsPlanType)
337
+
338
+ SavingsPlanUsageTypeList.member = Shapes::ShapeRef.new(shape: SavingsPlanUsageType)
339
+
340
+ ServiceQuotaExceededException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
341
+ ServiceQuotaExceededException.struct_class = Types::ServiceQuotaExceededException
342
+
343
+ TagKeyList.member = Shapes::ShapeRef.new(shape: TagKey)
344
+
345
+ TagMap.key = Shapes::ShapeRef.new(shape: TagKey)
346
+ TagMap.value = Shapes::ShapeRef.new(shape: TagValue)
347
+
348
+ TagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: SavingsPlanArn, required: true, location_name: "resourceArn"))
349
+ TagResourceRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, required: true, location_name: "tags"))
350
+ TagResourceRequest.struct_class = Types::TagResourceRequest
351
+
352
+ TagResourceResponse.struct_class = Types::TagResourceResponse
353
+
354
+ UUIDs.member = Shapes::ShapeRef.new(shape: UUID)
355
+
356
+ UntagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: SavingsPlanArn, required: true, location_name: "resourceArn"))
357
+ UntagResourceRequest.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeyList, required: true, location_name: "tagKeys"))
358
+ UntagResourceRequest.struct_class = Types::UntagResourceRequest
359
+
360
+ UntagResourceResponse.struct_class = Types::UntagResourceResponse
361
+
362
+ ValidationException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
363
+ ValidationException.struct_class = Types::ValidationException
364
+
365
+
366
+ # @api private
367
+ API = Seahorse::Model::Api.new.tap do |api|
368
+
369
+ api.version = "2019-06-28"
370
+
371
+ api.metadata = {
372
+ "apiVersion" => "2019-06-28",
373
+ "endpointPrefix" => "savingsplans",
374
+ "globalEndpoint" => "savingsplans.amazonaws.com",
375
+ "jsonVersion" => "1.0",
376
+ "protocol" => "rest-json",
377
+ "serviceAbbreviation" => "AWSSavingsPlans",
378
+ "serviceFullName" => "AWS Savings Plans",
379
+ "serviceId" => "savingsplans",
380
+ "signatureVersion" => "v4",
381
+ "uid" => "savingsplans-2019-06-28",
382
+ }
383
+
384
+ api.add_operation(:create_savings_plan, Seahorse::Model::Operation.new.tap do |o|
385
+ o.name = "CreateSavingsPlan"
386
+ o.http_method = "POST"
387
+ o.http_request_uri = "/CreateSavingsPlan"
388
+ o.input = Shapes::ShapeRef.new(shape: CreateSavingsPlanRequest)
389
+ o.output = Shapes::ShapeRef.new(shape: CreateSavingsPlanResponse)
390
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
391
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
392
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
393
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
394
+ end)
395
+
396
+ api.add_operation(:describe_savings_plan_rates, Seahorse::Model::Operation.new.tap do |o|
397
+ o.name = "DescribeSavingsPlanRates"
398
+ o.http_method = "POST"
399
+ o.http_request_uri = "/DescribeSavingsPlanRates"
400
+ o.input = Shapes::ShapeRef.new(shape: DescribeSavingsPlanRatesRequest)
401
+ o.output = Shapes::ShapeRef.new(shape: DescribeSavingsPlanRatesResponse)
402
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
403
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
404
+ end)
405
+
406
+ api.add_operation(:describe_savings_plans, Seahorse::Model::Operation.new.tap do |o|
407
+ o.name = "DescribeSavingsPlans"
408
+ o.http_method = "POST"
409
+ o.http_request_uri = "/DescribeSavingsPlans"
410
+ o.input = Shapes::ShapeRef.new(shape: DescribeSavingsPlansRequest)
411
+ o.output = Shapes::ShapeRef.new(shape: DescribeSavingsPlansResponse)
412
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
413
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
414
+ end)
415
+
416
+ api.add_operation(:describe_savings_plans_offering_rates, Seahorse::Model::Operation.new.tap do |o|
417
+ o.name = "DescribeSavingsPlansOfferingRates"
418
+ o.http_method = "POST"
419
+ o.http_request_uri = "/DescribeSavingsPlansOfferingRates"
420
+ o.input = Shapes::ShapeRef.new(shape: DescribeSavingsPlansOfferingRatesRequest)
421
+ o.output = Shapes::ShapeRef.new(shape: DescribeSavingsPlansOfferingRatesResponse)
422
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
423
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
424
+ end)
425
+
426
+ api.add_operation(:describe_savings_plans_offerings, Seahorse::Model::Operation.new.tap do |o|
427
+ o.name = "DescribeSavingsPlansOfferings"
428
+ o.http_method = "POST"
429
+ o.http_request_uri = "/DescribeSavingsPlansOfferings"
430
+ o.input = Shapes::ShapeRef.new(shape: DescribeSavingsPlansOfferingsRequest)
431
+ o.output = Shapes::ShapeRef.new(shape: DescribeSavingsPlansOfferingsResponse)
432
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
433
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
434
+ end)
435
+
436
+ api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
437
+ o.name = "ListTagsForResource"
438
+ o.http_method = "POST"
439
+ o.http_request_uri = "/ListTagsForResource"
440
+ o.input = Shapes::ShapeRef.new(shape: ListTagsForResourceRequest)
441
+ o.output = Shapes::ShapeRef.new(shape: ListTagsForResourceResponse)
442
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
443
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
444
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
445
+ end)
446
+
447
+ api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
448
+ o.name = "TagResource"
449
+ o.http_method = "POST"
450
+ o.http_request_uri = "/TagResource"
451
+ o.input = Shapes::ShapeRef.new(shape: TagResourceRequest)
452
+ o.output = Shapes::ShapeRef.new(shape: TagResourceResponse)
453
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
454
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
455
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
456
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
457
+ end)
458
+
459
+ api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
460
+ o.name = "UntagResource"
461
+ o.http_method = "POST"
462
+ o.http_request_uri = "/UntagResource"
463
+ o.input = Shapes::ShapeRef.new(shape: UntagResourceRequest)
464
+ o.output = Shapes::ShapeRef.new(shape: UntagResourceResponse)
465
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
466
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
467
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
468
+ end)
469
+ end
470
+
471
+ end
472
+ end