aws-sdk-freetier 1.22.0 → 1.24.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.
@@ -14,53 +14,121 @@ module Aws::FreeTier
14
14
 
15
15
  include Seahorse::Model
16
16
 
17
+ AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
18
+ AccountId = Shapes::StringShape.new(name: 'AccountId')
19
+ AccountPlanStatus = Shapes::StringShape.new(name: 'AccountPlanStatus')
20
+ AccountPlanType = Shapes::StringShape.new(name: 'AccountPlanType')
21
+ Activities = Shapes::ListShape.new(name: 'Activities')
22
+ ActivityId = Shapes::StringShape.new(name: 'ActivityId')
23
+ ActivityReward = Shapes::UnionShape.new(name: 'ActivityReward')
24
+ ActivityStatus = Shapes::StringShape.new(name: 'ActivityStatus')
25
+ ActivitySummary = Shapes::StructureShape.new(name: 'ActivitySummary')
26
+ CurrencyCode = Shapes::StringShape.new(name: 'CurrencyCode')
17
27
  Dimension = Shapes::StringShape.new(name: 'Dimension')
18
28
  DimensionValues = Shapes::StructureShape.new(name: 'DimensionValues')
19
29
  Expression = Shapes::StructureShape.new(name: 'Expression')
20
30
  Expressions = Shapes::ListShape.new(name: 'Expressions')
31
+ FilterActivityStatuses = Shapes::ListShape.new(name: 'FilterActivityStatuses')
21
32
  FreeTierUsage = Shapes::StructureShape.new(name: 'FreeTierUsage')
22
33
  FreeTierUsages = Shapes::ListShape.new(name: 'FreeTierUsages')
23
34
  GenericDouble = Shapes::FloatShape.new(name: 'GenericDouble')
24
35
  GenericString = Shapes::StringShape.new(name: 'GenericString')
36
+ GetAccountActivityRequest = Shapes::StructureShape.new(name: 'GetAccountActivityRequest')
37
+ GetAccountActivityResponse = Shapes::StructureShape.new(name: 'GetAccountActivityResponse')
38
+ GetAccountPlanStateRequest = Shapes::StructureShape.new(name: 'GetAccountPlanStateRequest')
39
+ GetAccountPlanStateResponse = Shapes::StructureShape.new(name: 'GetAccountPlanStateResponse')
25
40
  GetFreeTierUsageRequest = Shapes::StructureShape.new(name: 'GetFreeTierUsageRequest')
26
41
  GetFreeTierUsageResponse = Shapes::StructureShape.new(name: 'GetFreeTierUsageResponse')
42
+ Integer = Shapes::IntegerShape.new(name: 'Integer')
27
43
  InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
44
+ LanguageCode = Shapes::StringShape.new(name: 'LanguageCode')
45
+ ListAccountActivitiesRequest = Shapes::StructureShape.new(name: 'ListAccountActivitiesRequest')
46
+ ListAccountActivitiesResponse = Shapes::StructureShape.new(name: 'ListAccountActivitiesResponse')
28
47
  MatchOption = Shapes::StringShape.new(name: 'MatchOption')
29
48
  MatchOptions = Shapes::ListShape.new(name: 'MatchOptions')
30
49
  MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
50
+ MonetaryAmount = Shapes::StructureShape.new(name: 'MonetaryAmount')
31
51
  NextPageToken = Shapes::StringShape.new(name: 'NextPageToken')
52
+ ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
53
+ SyntheticTimestamp_date_time = Shapes::TimestampShape.new(name: 'SyntheticTimestamp_date_time', timestampFormat: "iso8601")
32
54
  ThrottlingException = Shapes::StructureShape.new(name: 'ThrottlingException')
55
+ UpgradeAccountPlanRequest = Shapes::StructureShape.new(name: 'UpgradeAccountPlanRequest')
56
+ UpgradeAccountPlanResponse = Shapes::StructureShape.new(name: 'UpgradeAccountPlanResponse')
33
57
  ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
34
58
  Value = Shapes::StringShape.new(name: 'Value')
35
59
  Values = Shapes::ListShape.new(name: 'Values')
36
60
 
61
+ AccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: GenericString, required: true, location_name: "message"))
62
+ AccessDeniedException.struct_class = Types::AccessDeniedException
63
+
64
+ Activities.member = Shapes::ShapeRef.new(shape: ActivitySummary)
65
+
66
+ ActivityReward.add_member(:credit, Shapes::ShapeRef.new(shape: MonetaryAmount, location_name: "credit"))
67
+ ActivityReward.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
68
+ ActivityReward.add_member_subclass(:credit, Types::ActivityReward::Credit)
69
+ ActivityReward.add_member_subclass(:unknown, Types::ActivityReward::Unknown)
70
+ ActivityReward.struct_class = Types::ActivityReward
71
+
72
+ ActivitySummary.add_member(:activity_id, Shapes::ShapeRef.new(shape: ActivityId, required: true, location_name: "activityId"))
73
+ ActivitySummary.add_member(:title, Shapes::ShapeRef.new(shape: GenericString, required: true, location_name: "title"))
74
+ ActivitySummary.add_member(:reward, Shapes::ShapeRef.new(shape: ActivityReward, required: true, location_name: "reward"))
75
+ ActivitySummary.add_member(:status, Shapes::ShapeRef.new(shape: ActivityStatus, required: true, location_name: "status"))
76
+ ActivitySummary.struct_class = Types::ActivitySummary
77
+
37
78
  DimensionValues.add_member(:key, Shapes::ShapeRef.new(shape: Dimension, required: true, location_name: "Key"))
38
- DimensionValues.add_member(:match_options, Shapes::ShapeRef.new(shape: MatchOptions, required: true, location_name: "MatchOptions"))
39
79
  DimensionValues.add_member(:values, Shapes::ShapeRef.new(shape: Values, required: true, location_name: "Values"))
80
+ DimensionValues.add_member(:match_options, Shapes::ShapeRef.new(shape: MatchOptions, required: true, location_name: "MatchOptions"))
40
81
  DimensionValues.struct_class = Types::DimensionValues
41
82
 
83
+ Expression.add_member(:or, Shapes::ShapeRef.new(shape: Expressions, location_name: "Or"))
42
84
  Expression.add_member(:and, Shapes::ShapeRef.new(shape: Expressions, location_name: "And"))
43
- Expression.add_member(:dimensions, Shapes::ShapeRef.new(shape: DimensionValues, location_name: "Dimensions"))
44
85
  Expression.add_member(:not, Shapes::ShapeRef.new(shape: Expression, location_name: "Not"))
45
- Expression.add_member(:or, Shapes::ShapeRef.new(shape: Expressions, location_name: "Or"))
86
+ Expression.add_member(:dimensions, Shapes::ShapeRef.new(shape: DimensionValues, location_name: "Dimensions"))
46
87
  Expression.struct_class = Types::Expression
47
88
 
48
89
  Expressions.member = Shapes::ShapeRef.new(shape: Expression)
49
90
 
91
+ FilterActivityStatuses.member = Shapes::ShapeRef.new(shape: ActivityStatus)
92
+
93
+ FreeTierUsage.add_member(:service, Shapes::ShapeRef.new(shape: GenericString, location_name: "service"))
94
+ FreeTierUsage.add_member(:operation, Shapes::ShapeRef.new(shape: GenericString, location_name: "operation"))
95
+ FreeTierUsage.add_member(:usage_type, Shapes::ShapeRef.new(shape: GenericString, location_name: "usageType"))
96
+ FreeTierUsage.add_member(:region, Shapes::ShapeRef.new(shape: GenericString, location_name: "region"))
50
97
  FreeTierUsage.add_member(:actual_usage_amount, Shapes::ShapeRef.new(shape: GenericDouble, location_name: "actualUsageAmount"))
51
- FreeTierUsage.add_member(:description, Shapes::ShapeRef.new(shape: GenericString, location_name: "description"))
52
98
  FreeTierUsage.add_member(:forecasted_usage_amount, Shapes::ShapeRef.new(shape: GenericDouble, location_name: "forecastedUsageAmount"))
53
- FreeTierUsage.add_member(:free_tier_type, Shapes::ShapeRef.new(shape: GenericString, location_name: "freeTierType"))
54
99
  FreeTierUsage.add_member(:limit, Shapes::ShapeRef.new(shape: GenericDouble, location_name: "limit"))
55
- FreeTierUsage.add_member(:operation, Shapes::ShapeRef.new(shape: GenericString, location_name: "operation"))
56
- FreeTierUsage.add_member(:region, Shapes::ShapeRef.new(shape: GenericString, location_name: "region"))
57
- FreeTierUsage.add_member(:service, Shapes::ShapeRef.new(shape: GenericString, location_name: "service"))
58
100
  FreeTierUsage.add_member(:unit, Shapes::ShapeRef.new(shape: GenericString, location_name: "unit"))
59
- FreeTierUsage.add_member(:usage_type, Shapes::ShapeRef.new(shape: GenericString, location_name: "usageType"))
101
+ FreeTierUsage.add_member(:description, Shapes::ShapeRef.new(shape: GenericString, location_name: "description"))
102
+ FreeTierUsage.add_member(:free_tier_type, Shapes::ShapeRef.new(shape: GenericString, location_name: "freeTierType"))
60
103
  FreeTierUsage.struct_class = Types::FreeTierUsage
61
104
 
62
105
  FreeTierUsages.member = Shapes::ShapeRef.new(shape: FreeTierUsage)
63
106
 
107
+ GetAccountActivityRequest.add_member(:activity_id, Shapes::ShapeRef.new(shape: ActivityId, required: true, location_name: "activityId"))
108
+ GetAccountActivityRequest.add_member(:language_code, Shapes::ShapeRef.new(shape: LanguageCode, location_name: "languageCode"))
109
+ GetAccountActivityRequest.struct_class = Types::GetAccountActivityRequest
110
+
111
+ GetAccountActivityResponse.add_member(:activity_id, Shapes::ShapeRef.new(shape: ActivityId, required: true, location_name: "activityId"))
112
+ GetAccountActivityResponse.add_member(:title, Shapes::ShapeRef.new(shape: GenericString, required: true, location_name: "title"))
113
+ GetAccountActivityResponse.add_member(:description, Shapes::ShapeRef.new(shape: GenericString, required: true, location_name: "description"))
114
+ GetAccountActivityResponse.add_member(:status, Shapes::ShapeRef.new(shape: ActivityStatus, required: true, location_name: "status"))
115
+ GetAccountActivityResponse.add_member(:instructions_url, Shapes::ShapeRef.new(shape: GenericString, required: true, location_name: "instructionsUrl"))
116
+ GetAccountActivityResponse.add_member(:reward, Shapes::ShapeRef.new(shape: ActivityReward, required: true, location_name: "reward"))
117
+ GetAccountActivityResponse.add_member(:estimated_time_to_complete_in_minutes, Shapes::ShapeRef.new(shape: Integer, location_name: "estimatedTimeToCompleteInMinutes"))
118
+ GetAccountActivityResponse.add_member(:expires_at, Shapes::ShapeRef.new(shape: SyntheticTimestamp_date_time, location_name: "expiresAt"))
119
+ GetAccountActivityResponse.add_member(:started_at, Shapes::ShapeRef.new(shape: SyntheticTimestamp_date_time, location_name: "startedAt"))
120
+ GetAccountActivityResponse.add_member(:completed_at, Shapes::ShapeRef.new(shape: SyntheticTimestamp_date_time, location_name: "completedAt"))
121
+ GetAccountActivityResponse.struct_class = Types::GetAccountActivityResponse
122
+
123
+ GetAccountPlanStateRequest.struct_class = Types::GetAccountPlanStateRequest
124
+
125
+ GetAccountPlanStateResponse.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, required: true, location_name: "accountId"))
126
+ GetAccountPlanStateResponse.add_member(:account_plan_type, Shapes::ShapeRef.new(shape: AccountPlanType, required: true, location_name: "accountPlanType"))
127
+ GetAccountPlanStateResponse.add_member(:account_plan_status, Shapes::ShapeRef.new(shape: AccountPlanStatus, required: true, location_name: "accountPlanStatus"))
128
+ GetAccountPlanStateResponse.add_member(:account_plan_remaining_credits, Shapes::ShapeRef.new(shape: MonetaryAmount, location_name: "accountPlanRemainingCredits"))
129
+ GetAccountPlanStateResponse.add_member(:account_plan_expiration_date, Shapes::ShapeRef.new(shape: SyntheticTimestamp_date_time, location_name: "accountPlanExpirationDate"))
130
+ GetAccountPlanStateResponse.struct_class = Types::GetAccountPlanStateResponse
131
+
64
132
  GetFreeTierUsageRequest.add_member(:filter, Shapes::ShapeRef.new(shape: Expression, location_name: "filter"))
65
133
  GetFreeTierUsageRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "maxResults"))
66
134
  GetFreeTierUsageRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextPageToken, location_name: "nextToken"))
@@ -73,11 +141,36 @@ module Aws::FreeTier
73
141
  InternalServerException.add_member(:message, Shapes::ShapeRef.new(shape: GenericString, required: true, location_name: "message"))
74
142
  InternalServerException.struct_class = Types::InternalServerException
75
143
 
144
+ ListAccountActivitiesRequest.add_member(:filter_activity_statuses, Shapes::ShapeRef.new(shape: FilterActivityStatuses, location_name: "filterActivityStatuses"))
145
+ ListAccountActivitiesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextPageToken, location_name: "nextToken"))
146
+ ListAccountActivitiesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "maxResults"))
147
+ ListAccountActivitiesRequest.add_member(:language_code, Shapes::ShapeRef.new(shape: LanguageCode, location_name: "languageCode"))
148
+ ListAccountActivitiesRequest.struct_class = Types::ListAccountActivitiesRequest
149
+
150
+ ListAccountActivitiesResponse.add_member(:activities, Shapes::ShapeRef.new(shape: Activities, required: true, location_name: "activities"))
151
+ ListAccountActivitiesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextPageToken, location_name: "nextToken"))
152
+ ListAccountActivitiesResponse.struct_class = Types::ListAccountActivitiesResponse
153
+
76
154
  MatchOptions.member = Shapes::ShapeRef.new(shape: MatchOption)
77
155
 
156
+ MonetaryAmount.add_member(:amount, Shapes::ShapeRef.new(shape: GenericDouble, required: true, location_name: "amount"))
157
+ MonetaryAmount.add_member(:unit, Shapes::ShapeRef.new(shape: CurrencyCode, required: true, location_name: "unit"))
158
+ MonetaryAmount.struct_class = Types::MonetaryAmount
159
+
160
+ ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: GenericString, required: true, location_name: "message"))
161
+ ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
162
+
78
163
  ThrottlingException.add_member(:message, Shapes::ShapeRef.new(shape: GenericString, required: true, location_name: "message"))
79
164
  ThrottlingException.struct_class = Types::ThrottlingException
80
165
 
166
+ UpgradeAccountPlanRequest.add_member(:account_plan_type, Shapes::ShapeRef.new(shape: AccountPlanType, required: true, location_name: "accountPlanType"))
167
+ UpgradeAccountPlanRequest.struct_class = Types::UpgradeAccountPlanRequest
168
+
169
+ UpgradeAccountPlanResponse.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, required: true, location_name: "accountId"))
170
+ UpgradeAccountPlanResponse.add_member(:account_plan_type, Shapes::ShapeRef.new(shape: AccountPlanType, required: true, location_name: "accountPlanType"))
171
+ UpgradeAccountPlanResponse.add_member(:account_plan_status, Shapes::ShapeRef.new(shape: AccountPlanStatus, required: true, location_name: "accountPlanStatus"))
172
+ UpgradeAccountPlanResponse.struct_class = Types::UpgradeAccountPlanResponse
173
+
81
174
  ValidationException.add_member(:message, Shapes::ShapeRef.new(shape: GenericString, required: true, location_name: "message"))
82
175
  ValidationException.struct_class = Types::ValidationException
83
176
 
@@ -91,9 +184,11 @@ module Aws::FreeTier
91
184
 
92
185
  api.metadata = {
93
186
  "apiVersion" => "2023-09-07",
187
+ "auth" => ["aws.auth#sigv4"],
94
188
  "endpointPrefix" => "freetier",
95
189
  "jsonVersion" => "1.0",
96
190
  "protocol" => "json",
191
+ "protocols" => ["json"],
97
192
  "serviceFullName" => "AWS Free Tier",
98
193
  "serviceId" => "FreeTier",
99
194
  "signatureVersion" => "v4",
@@ -102,6 +197,31 @@ module Aws::FreeTier
102
197
  "uid" => "freetier-2023-09-07",
103
198
  }
104
199
 
200
+ api.add_operation(:get_account_activity, Seahorse::Model::Operation.new.tap do |o|
201
+ o.name = "GetAccountActivity"
202
+ o.http_method = "POST"
203
+ o.http_request_uri = "/"
204
+ o.input = Shapes::ShapeRef.new(shape: GetAccountActivityRequest)
205
+ o.output = Shapes::ShapeRef.new(shape: GetAccountActivityResponse)
206
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
207
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
208
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
209
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
210
+ end)
211
+
212
+ api.add_operation(:get_account_plan_state, Seahorse::Model::Operation.new.tap do |o|
213
+ o.name = "GetAccountPlanState"
214
+ o.http_method = "POST"
215
+ o.http_request_uri = "/"
216
+ o.input = Shapes::ShapeRef.new(shape: GetAccountPlanStateRequest)
217
+ o.output = Shapes::ShapeRef.new(shape: GetAccountPlanStateResponse)
218
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
219
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
220
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
221
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
222
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
223
+ end)
224
+
105
225
  api.add_operation(:get_free_tier_usage, Seahorse::Model::Operation.new.tap do |o|
106
226
  o.name = "GetFreeTierUsage"
107
227
  o.http_method = "POST"
@@ -118,6 +238,36 @@ module Aws::FreeTier
118
238
  }
119
239
  )
120
240
  end)
241
+
242
+ api.add_operation(:list_account_activities, Seahorse::Model::Operation.new.tap do |o|
243
+ o.name = "ListAccountActivities"
244
+ o.http_method = "POST"
245
+ o.http_request_uri = "/"
246
+ o.input = Shapes::ShapeRef.new(shape: ListAccountActivitiesRequest)
247
+ o.output = Shapes::ShapeRef.new(shape: ListAccountActivitiesResponse)
248
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
249
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
250
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
251
+ o[:pager] = Aws::Pager.new(
252
+ limit_key: "max_results",
253
+ tokens: {
254
+ "next_token" => "next_token"
255
+ }
256
+ )
257
+ end)
258
+
259
+ api.add_operation(:upgrade_account_plan, Seahorse::Model::Operation.new.tap do |o|
260
+ o.name = "UpgradeAccountPlan"
261
+ o.http_method = "POST"
262
+ o.http_request_uri = "/"
263
+ o.input = Shapes::ShapeRef.new(shape: UpgradeAccountPlanRequest)
264
+ o.output = Shapes::ShapeRef.new(shape: UpgradeAccountPlanResponse)
265
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
266
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
267
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
268
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
269
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
270
+ end)
121
271
  end
122
272
 
123
273
  end
@@ -27,7 +27,9 @@ module Aws::FreeTier
27
27
  # See {Seahorse::Client::RequestContext} for more information.
28
28
  #
29
29
  # ## Error Classes
30
+ # * {AccessDeniedException}
30
31
  # * {InternalServerException}
32
+ # * {ResourceNotFoundException}
31
33
  # * {ThrottlingException}
32
34
  # * {ValidationException}
33
35
  #
@@ -37,6 +39,21 @@ module Aws::FreeTier
37
39
 
38
40
  extend Aws::Errors::DynamicErrors
39
41
 
42
+ class AccessDeniedException < ServiceError
43
+
44
+ # @param [Seahorse::Client::RequestContext] context
45
+ # @param [String] message
46
+ # @param [Aws::FreeTier::Types::AccessDeniedException] data
47
+ def initialize(context, message, data = Aws::EmptyStructure.new)
48
+ super(context, message, data)
49
+ end
50
+
51
+ # @return [String]
52
+ def message
53
+ @message || @data[:message]
54
+ end
55
+ end
56
+
40
57
  class InternalServerException < ServiceError
41
58
 
42
59
  # @param [Seahorse::Client::RequestContext] context
@@ -52,6 +69,21 @@ module Aws::FreeTier
52
69
  end
53
70
  end
54
71
 
72
+ class ResourceNotFoundException < ServiceError
73
+
74
+ # @param [Seahorse::Client::RequestContext] context
75
+ # @param [String] message
76
+ # @param [Aws::FreeTier::Types::ResourceNotFoundException] data
77
+ def initialize(context, message, data = Aws::EmptyStructure.new)
78
+ super(context, message, data)
79
+ end
80
+
81
+ # @return [String]
82
+ def message
83
+ @message || @data[:message]
84
+ end
85
+ end
86
+
55
87
  class ThrottlingException < ServiceError
56
88
 
57
89
  # @param [Seahorse::Client::RequestContext] context