aws-sdk-codeguruprofiler 1.0.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 +7 -0
- data/lib/aws-sdk-codeguruprofiler.rb +47 -0
- data/lib/aws-sdk-codeguruprofiler/client.rb +693 -0
- data/lib/aws-sdk-codeguruprofiler/client_api.rb +344 -0
- data/lib/aws-sdk-codeguruprofiler/customizations.rb +0 -0
- data/lib/aws-sdk-codeguruprofiler/errors.rb +110 -0
- data/lib/aws-sdk-codeguruprofiler/resource.rb +23 -0
- data/lib/aws-sdk-codeguruprofiler/types.rb +679 -0
- metadata +88 -0
@@ -0,0 +1,344 @@
|
|
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::CodeGuruProfiler
|
9
|
+
# @api private
|
10
|
+
module ClientApi
|
11
|
+
|
12
|
+
include Seahorse::Model
|
13
|
+
|
14
|
+
AgentConfiguration = Shapes::StructureShape.new(name: 'AgentConfiguration')
|
15
|
+
AgentOrchestrationConfig = Shapes::StructureShape.new(name: 'AgentOrchestrationConfig')
|
16
|
+
AgentProfile = Shapes::BlobShape.new(name: 'AgentProfile')
|
17
|
+
AggregatedProfile = Shapes::BlobShape.new(name: 'AggregatedProfile')
|
18
|
+
AggregatedProfileTime = Shapes::StructureShape.new(name: 'AggregatedProfileTime')
|
19
|
+
AggregationPeriod = Shapes::StringShape.new(name: 'AggregationPeriod')
|
20
|
+
Boolean = Shapes::BooleanShape.new(name: 'Boolean')
|
21
|
+
ClientToken = Shapes::StringShape.new(name: 'ClientToken')
|
22
|
+
ConfigureAgentRequest = Shapes::StructureShape.new(name: 'ConfigureAgentRequest')
|
23
|
+
ConfigureAgentResponse = Shapes::StructureShape.new(name: 'ConfigureAgentResponse')
|
24
|
+
ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
|
25
|
+
CreateProfilingGroupRequest = Shapes::StructureShape.new(name: 'CreateProfilingGroupRequest')
|
26
|
+
CreateProfilingGroupResponse = Shapes::StructureShape.new(name: 'CreateProfilingGroupResponse')
|
27
|
+
DeleteProfilingGroupRequest = Shapes::StructureShape.new(name: 'DeleteProfilingGroupRequest')
|
28
|
+
DeleteProfilingGroupResponse = Shapes::StructureShape.new(name: 'DeleteProfilingGroupResponse')
|
29
|
+
DescribeProfilingGroupRequest = Shapes::StructureShape.new(name: 'DescribeProfilingGroupRequest')
|
30
|
+
DescribeProfilingGroupResponse = Shapes::StructureShape.new(name: 'DescribeProfilingGroupResponse')
|
31
|
+
FleetInstanceId = Shapes::StringShape.new(name: 'FleetInstanceId')
|
32
|
+
GetProfileRequest = Shapes::StructureShape.new(name: 'GetProfileRequest')
|
33
|
+
GetProfileResponse = Shapes::StructureShape.new(name: 'GetProfileResponse')
|
34
|
+
Integer = Shapes::IntegerShape.new(name: 'Integer')
|
35
|
+
InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
|
36
|
+
ListProfileTimesRequest = Shapes::StructureShape.new(name: 'ListProfileTimesRequest')
|
37
|
+
ListProfileTimesResponse = Shapes::StructureShape.new(name: 'ListProfileTimesResponse')
|
38
|
+
ListProfilingGroupsRequest = Shapes::StructureShape.new(name: 'ListProfilingGroupsRequest')
|
39
|
+
ListProfilingGroupsResponse = Shapes::StructureShape.new(name: 'ListProfilingGroupsResponse')
|
40
|
+
MaxDepth = Shapes::IntegerShape.new(name: 'MaxDepth')
|
41
|
+
MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
|
42
|
+
OrderBy = Shapes::StringShape.new(name: 'OrderBy')
|
43
|
+
PaginationToken = Shapes::StringShape.new(name: 'PaginationToken')
|
44
|
+
Period = Shapes::StringShape.new(name: 'Period')
|
45
|
+
PostAgentProfileRequest = Shapes::StructureShape.new(name: 'PostAgentProfileRequest')
|
46
|
+
PostAgentProfileResponse = Shapes::StructureShape.new(name: 'PostAgentProfileResponse')
|
47
|
+
ProfileTime = Shapes::StructureShape.new(name: 'ProfileTime')
|
48
|
+
ProfileTimes = Shapes::ListShape.new(name: 'ProfileTimes')
|
49
|
+
ProfilingGroupArn = Shapes::StringShape.new(name: 'ProfilingGroupArn')
|
50
|
+
ProfilingGroupDescription = Shapes::StructureShape.new(name: 'ProfilingGroupDescription')
|
51
|
+
ProfilingGroupDescriptions = Shapes::ListShape.new(name: 'ProfilingGroupDescriptions')
|
52
|
+
ProfilingGroupName = Shapes::StringShape.new(name: 'ProfilingGroupName')
|
53
|
+
ProfilingGroupNames = Shapes::ListShape.new(name: 'ProfilingGroupNames')
|
54
|
+
ProfilingStatus = Shapes::StructureShape.new(name: 'ProfilingStatus')
|
55
|
+
ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
|
56
|
+
ServiceQuotaExceededException = Shapes::StructureShape.new(name: 'ServiceQuotaExceededException')
|
57
|
+
String = Shapes::StringShape.new(name: 'String')
|
58
|
+
ThrottlingException = Shapes::StructureShape.new(name: 'ThrottlingException')
|
59
|
+
Timestamp = Shapes::TimestampShape.new(name: 'Timestamp', timestampFormat: "iso8601")
|
60
|
+
UpdateProfilingGroupRequest = Shapes::StructureShape.new(name: 'UpdateProfilingGroupRequest')
|
61
|
+
UpdateProfilingGroupResponse = Shapes::StructureShape.new(name: 'UpdateProfilingGroupResponse')
|
62
|
+
ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
|
63
|
+
|
64
|
+
AgentConfiguration.add_member(:period_in_seconds, Shapes::ShapeRef.new(shape: Integer, required: true, location_name: "periodInSeconds"))
|
65
|
+
AgentConfiguration.add_member(:should_profile, Shapes::ShapeRef.new(shape: Boolean, required: true, location_name: "shouldProfile"))
|
66
|
+
AgentConfiguration.struct_class = Types::AgentConfiguration
|
67
|
+
|
68
|
+
AgentOrchestrationConfig.add_member(:profiling_enabled, Shapes::ShapeRef.new(shape: Boolean, required: true, location_name: "profilingEnabled"))
|
69
|
+
AgentOrchestrationConfig.struct_class = Types::AgentOrchestrationConfig
|
70
|
+
|
71
|
+
AggregatedProfileTime.add_member(:period, Shapes::ShapeRef.new(shape: AggregationPeriod, location_name: "period"))
|
72
|
+
AggregatedProfileTime.add_member(:start, Shapes::ShapeRef.new(shape: Timestamp, location_name: "start"))
|
73
|
+
AggregatedProfileTime.struct_class = Types::AggregatedProfileTime
|
74
|
+
|
75
|
+
ConfigureAgentRequest.add_member(:fleet_instance_id, Shapes::ShapeRef.new(shape: FleetInstanceId, location_name: "fleetInstanceId"))
|
76
|
+
ConfigureAgentRequest.add_member(:profiling_group_name, Shapes::ShapeRef.new(shape: ProfilingGroupName, required: true, location: "uri", location_name: "profilingGroupName"))
|
77
|
+
ConfigureAgentRequest.struct_class = Types::ConfigureAgentRequest
|
78
|
+
|
79
|
+
ConfigureAgentResponse.add_member(:configuration, Shapes::ShapeRef.new(shape: AgentConfiguration, required: true, location_name: "configuration"))
|
80
|
+
ConfigureAgentResponse.struct_class = Types::ConfigureAgentResponse
|
81
|
+
ConfigureAgentResponse[:payload] = :configuration
|
82
|
+
ConfigureAgentResponse[:payload_member] = ConfigureAgentResponse.member(:configuration)
|
83
|
+
|
84
|
+
ConflictException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
85
|
+
ConflictException.struct_class = Types::ConflictException
|
86
|
+
|
87
|
+
CreateProfilingGroupRequest.add_member(:agent_orchestration_config, Shapes::ShapeRef.new(shape: AgentOrchestrationConfig, location_name: "agentOrchestrationConfig"))
|
88
|
+
CreateProfilingGroupRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientToken, required: true, location: "querystring", location_name: "clientToken", metadata: {"idempotencyToken"=>true}))
|
89
|
+
CreateProfilingGroupRequest.add_member(:profiling_group_name, Shapes::ShapeRef.new(shape: ProfilingGroupName, required: true, location_name: "profilingGroupName"))
|
90
|
+
CreateProfilingGroupRequest.struct_class = Types::CreateProfilingGroupRequest
|
91
|
+
|
92
|
+
CreateProfilingGroupResponse.add_member(:profiling_group, Shapes::ShapeRef.new(shape: ProfilingGroupDescription, required: true, location_name: "profilingGroup"))
|
93
|
+
CreateProfilingGroupResponse.struct_class = Types::CreateProfilingGroupResponse
|
94
|
+
CreateProfilingGroupResponse[:payload] = :profiling_group
|
95
|
+
CreateProfilingGroupResponse[:payload_member] = CreateProfilingGroupResponse.member(:profiling_group)
|
96
|
+
|
97
|
+
DeleteProfilingGroupRequest.add_member(:profiling_group_name, Shapes::ShapeRef.new(shape: ProfilingGroupName, required: true, location: "uri", location_name: "profilingGroupName"))
|
98
|
+
DeleteProfilingGroupRequest.struct_class = Types::DeleteProfilingGroupRequest
|
99
|
+
|
100
|
+
DeleteProfilingGroupResponse.struct_class = Types::DeleteProfilingGroupResponse
|
101
|
+
|
102
|
+
DescribeProfilingGroupRequest.add_member(:profiling_group_name, Shapes::ShapeRef.new(shape: ProfilingGroupName, required: true, location: "uri", location_name: "profilingGroupName"))
|
103
|
+
DescribeProfilingGroupRequest.struct_class = Types::DescribeProfilingGroupRequest
|
104
|
+
|
105
|
+
DescribeProfilingGroupResponse.add_member(:profiling_group, Shapes::ShapeRef.new(shape: ProfilingGroupDescription, required: true, location_name: "profilingGroup"))
|
106
|
+
DescribeProfilingGroupResponse.struct_class = Types::DescribeProfilingGroupResponse
|
107
|
+
DescribeProfilingGroupResponse[:payload] = :profiling_group
|
108
|
+
DescribeProfilingGroupResponse[:payload_member] = DescribeProfilingGroupResponse.member(:profiling_group)
|
109
|
+
|
110
|
+
GetProfileRequest.add_member(:accept, Shapes::ShapeRef.new(shape: String, location: "header", location_name: "Accept"))
|
111
|
+
GetProfileRequest.add_member(:end_time, Shapes::ShapeRef.new(shape: Timestamp, location: "querystring", location_name: "endTime"))
|
112
|
+
GetProfileRequest.add_member(:max_depth, Shapes::ShapeRef.new(shape: MaxDepth, location: "querystring", location_name: "maxDepth"))
|
113
|
+
GetProfileRequest.add_member(:period, Shapes::ShapeRef.new(shape: Period, location: "querystring", location_name: "period"))
|
114
|
+
GetProfileRequest.add_member(:profiling_group_name, Shapes::ShapeRef.new(shape: ProfilingGroupName, required: true, location: "uri", location_name: "profilingGroupName"))
|
115
|
+
GetProfileRequest.add_member(:start_time, Shapes::ShapeRef.new(shape: Timestamp, location: "querystring", location_name: "startTime"))
|
116
|
+
GetProfileRequest.struct_class = Types::GetProfileRequest
|
117
|
+
|
118
|
+
GetProfileResponse.add_member(:content_encoding, Shapes::ShapeRef.new(shape: String, location: "header", location_name: "Content-Encoding"))
|
119
|
+
GetProfileResponse.add_member(:content_type, Shapes::ShapeRef.new(shape: String, required: true, location: "header", location_name: "Content-Type"))
|
120
|
+
GetProfileResponse.add_member(:profile, Shapes::ShapeRef.new(shape: AggregatedProfile, required: true, location_name: "profile"))
|
121
|
+
GetProfileResponse.struct_class = Types::GetProfileResponse
|
122
|
+
GetProfileResponse[:payload] = :profile
|
123
|
+
GetProfileResponse[:payload_member] = GetProfileResponse.member(:profile)
|
124
|
+
|
125
|
+
InternalServerException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
126
|
+
InternalServerException.struct_class = Types::InternalServerException
|
127
|
+
|
128
|
+
ListProfileTimesRequest.add_member(:end_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location: "querystring", location_name: "endTime"))
|
129
|
+
ListProfileTimesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "maxResults"))
|
130
|
+
ListProfileTimesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location: "querystring", location_name: "nextToken"))
|
131
|
+
ListProfileTimesRequest.add_member(:order_by, Shapes::ShapeRef.new(shape: OrderBy, location: "querystring", location_name: "orderBy"))
|
132
|
+
ListProfileTimesRequest.add_member(:period, Shapes::ShapeRef.new(shape: AggregationPeriod, required: true, location: "querystring", location_name: "period"))
|
133
|
+
ListProfileTimesRequest.add_member(:profiling_group_name, Shapes::ShapeRef.new(shape: ProfilingGroupName, required: true, location: "uri", location_name: "profilingGroupName"))
|
134
|
+
ListProfileTimesRequest.add_member(:start_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location: "querystring", location_name: "startTime"))
|
135
|
+
ListProfileTimesRequest.struct_class = Types::ListProfileTimesRequest
|
136
|
+
|
137
|
+
ListProfileTimesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "nextToken"))
|
138
|
+
ListProfileTimesResponse.add_member(:profile_times, Shapes::ShapeRef.new(shape: ProfileTimes, required: true, location_name: "profileTimes"))
|
139
|
+
ListProfileTimesResponse.struct_class = Types::ListProfileTimesResponse
|
140
|
+
|
141
|
+
ListProfilingGroupsRequest.add_member(:include_description, Shapes::ShapeRef.new(shape: Boolean, location: "querystring", location_name: "includeDescription"))
|
142
|
+
ListProfilingGroupsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "maxResults"))
|
143
|
+
ListProfilingGroupsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location: "querystring", location_name: "nextToken"))
|
144
|
+
ListProfilingGroupsRequest.struct_class = Types::ListProfilingGroupsRequest
|
145
|
+
|
146
|
+
ListProfilingGroupsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "nextToken"))
|
147
|
+
ListProfilingGroupsResponse.add_member(:profiling_group_names, Shapes::ShapeRef.new(shape: ProfilingGroupNames, required: true, location_name: "profilingGroupNames"))
|
148
|
+
ListProfilingGroupsResponse.add_member(:profiling_groups, Shapes::ShapeRef.new(shape: ProfilingGroupDescriptions, location_name: "profilingGroups"))
|
149
|
+
ListProfilingGroupsResponse.struct_class = Types::ListProfilingGroupsResponse
|
150
|
+
|
151
|
+
PostAgentProfileRequest.add_member(:agent_profile, Shapes::ShapeRef.new(shape: AgentProfile, required: true, location_name: "agentProfile"))
|
152
|
+
PostAgentProfileRequest.add_member(:content_type, Shapes::ShapeRef.new(shape: String, required: true, location: "header", location_name: "Content-Type"))
|
153
|
+
PostAgentProfileRequest.add_member(:profile_token, Shapes::ShapeRef.new(shape: ClientToken, location: "querystring", location_name: "profileToken", metadata: {"idempotencyToken"=>true}))
|
154
|
+
PostAgentProfileRequest.add_member(:profiling_group_name, Shapes::ShapeRef.new(shape: ProfilingGroupName, required: true, location: "uri", location_name: "profilingGroupName"))
|
155
|
+
PostAgentProfileRequest.struct_class = Types::PostAgentProfileRequest
|
156
|
+
PostAgentProfileRequest[:payload] = :agent_profile
|
157
|
+
PostAgentProfileRequest[:payload_member] = PostAgentProfileRequest.member(:agent_profile)
|
158
|
+
|
159
|
+
PostAgentProfileResponse.struct_class = Types::PostAgentProfileResponse
|
160
|
+
|
161
|
+
ProfileTime.add_member(:start, Shapes::ShapeRef.new(shape: Timestamp, location_name: "start"))
|
162
|
+
ProfileTime.struct_class = Types::ProfileTime
|
163
|
+
|
164
|
+
ProfileTimes.member = Shapes::ShapeRef.new(shape: ProfileTime)
|
165
|
+
|
166
|
+
ProfilingGroupDescription.add_member(:agent_orchestration_config, Shapes::ShapeRef.new(shape: AgentOrchestrationConfig, location_name: "agentOrchestrationConfig"))
|
167
|
+
ProfilingGroupDescription.add_member(:arn, Shapes::ShapeRef.new(shape: ProfilingGroupArn, location_name: "arn"))
|
168
|
+
ProfilingGroupDescription.add_member(:created_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "createdAt"))
|
169
|
+
ProfilingGroupDescription.add_member(:name, Shapes::ShapeRef.new(shape: ProfilingGroupName, location_name: "name"))
|
170
|
+
ProfilingGroupDescription.add_member(:profiling_status, Shapes::ShapeRef.new(shape: ProfilingStatus, location_name: "profilingStatus"))
|
171
|
+
ProfilingGroupDescription.add_member(:updated_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "updatedAt"))
|
172
|
+
ProfilingGroupDescription.struct_class = Types::ProfilingGroupDescription
|
173
|
+
|
174
|
+
ProfilingGroupDescriptions.member = Shapes::ShapeRef.new(shape: ProfilingGroupDescription)
|
175
|
+
|
176
|
+
ProfilingGroupNames.member = Shapes::ShapeRef.new(shape: ProfilingGroupName)
|
177
|
+
|
178
|
+
ProfilingStatus.add_member(:latest_agent_orchestrated_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "latestAgentOrchestratedAt"))
|
179
|
+
ProfilingStatus.add_member(:latest_agent_profile_reported_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "latestAgentProfileReportedAt"))
|
180
|
+
ProfilingStatus.add_member(:latest_aggregated_profile, Shapes::ShapeRef.new(shape: AggregatedProfileTime, location_name: "latestAggregatedProfile"))
|
181
|
+
ProfilingStatus.struct_class = Types::ProfilingStatus
|
182
|
+
|
183
|
+
ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
184
|
+
ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
|
185
|
+
|
186
|
+
ServiceQuotaExceededException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
187
|
+
ServiceQuotaExceededException.struct_class = Types::ServiceQuotaExceededException
|
188
|
+
|
189
|
+
ThrottlingException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
190
|
+
ThrottlingException.struct_class = Types::ThrottlingException
|
191
|
+
|
192
|
+
UpdateProfilingGroupRequest.add_member(:agent_orchestration_config, Shapes::ShapeRef.new(shape: AgentOrchestrationConfig, required: true, location_name: "agentOrchestrationConfig"))
|
193
|
+
UpdateProfilingGroupRequest.add_member(:profiling_group_name, Shapes::ShapeRef.new(shape: ProfilingGroupName, required: true, location: "uri", location_name: "profilingGroupName"))
|
194
|
+
UpdateProfilingGroupRequest.struct_class = Types::UpdateProfilingGroupRequest
|
195
|
+
|
196
|
+
UpdateProfilingGroupResponse.add_member(:profiling_group, Shapes::ShapeRef.new(shape: ProfilingGroupDescription, required: true, location_name: "profilingGroup"))
|
197
|
+
UpdateProfilingGroupResponse.struct_class = Types::UpdateProfilingGroupResponse
|
198
|
+
UpdateProfilingGroupResponse[:payload] = :profiling_group
|
199
|
+
UpdateProfilingGroupResponse[:payload_member] = UpdateProfilingGroupResponse.member(:profiling_group)
|
200
|
+
|
201
|
+
ValidationException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
202
|
+
ValidationException.struct_class = Types::ValidationException
|
203
|
+
|
204
|
+
|
205
|
+
# @api private
|
206
|
+
API = Seahorse::Model::Api.new.tap do |api|
|
207
|
+
|
208
|
+
api.version = "2019-07-18"
|
209
|
+
|
210
|
+
api.metadata = {
|
211
|
+
"apiVersion" => "2019-07-18",
|
212
|
+
"endpointPrefix" => "codeguru-profiler",
|
213
|
+
"jsonVersion" => "1.1",
|
214
|
+
"protocol" => "rest-json",
|
215
|
+
"serviceFullName" => "Amazon CodeGuru Profiler",
|
216
|
+
"serviceId" => "CodeGuruProfiler",
|
217
|
+
"signatureVersion" => "v4",
|
218
|
+
"signingName" => "codeguru-profiler",
|
219
|
+
"uid" => "codeguruprofiler-2019-07-18",
|
220
|
+
}
|
221
|
+
|
222
|
+
api.add_operation(:configure_agent, Seahorse::Model::Operation.new.tap do |o|
|
223
|
+
o.name = "ConfigureAgent"
|
224
|
+
o.http_method = "POST"
|
225
|
+
o.http_request_uri = "/profilingGroups/{profilingGroupName}/configureAgent"
|
226
|
+
o.input = Shapes::ShapeRef.new(shape: ConfigureAgentRequest)
|
227
|
+
o.output = Shapes::ShapeRef.new(shape: ConfigureAgentResponse)
|
228
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
229
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
230
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
231
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
232
|
+
end)
|
233
|
+
|
234
|
+
api.add_operation(:create_profiling_group, Seahorse::Model::Operation.new.tap do |o|
|
235
|
+
o.name = "CreateProfilingGroup"
|
236
|
+
o.http_method = "POST"
|
237
|
+
o.http_request_uri = "/profilingGroups"
|
238
|
+
o.input = Shapes::ShapeRef.new(shape: CreateProfilingGroupRequest)
|
239
|
+
o.output = Shapes::ShapeRef.new(shape: CreateProfilingGroupResponse)
|
240
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
|
241
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
242
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
243
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
244
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
245
|
+
end)
|
246
|
+
|
247
|
+
api.add_operation(:delete_profiling_group, Seahorse::Model::Operation.new.tap do |o|
|
248
|
+
o.name = "DeleteProfilingGroup"
|
249
|
+
o.http_method = "DELETE"
|
250
|
+
o.http_request_uri = "/profilingGroups/{profilingGroupName}"
|
251
|
+
o.input = Shapes::ShapeRef.new(shape: DeleteProfilingGroupRequest)
|
252
|
+
o.output = Shapes::ShapeRef.new(shape: DeleteProfilingGroupResponse)
|
253
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
254
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
255
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
256
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
257
|
+
end)
|
258
|
+
|
259
|
+
api.add_operation(:describe_profiling_group, Seahorse::Model::Operation.new.tap do |o|
|
260
|
+
o.name = "DescribeProfilingGroup"
|
261
|
+
o.http_method = "GET"
|
262
|
+
o.http_request_uri = "/profilingGroups/{profilingGroupName}"
|
263
|
+
o.input = Shapes::ShapeRef.new(shape: DescribeProfilingGroupRequest)
|
264
|
+
o.output = Shapes::ShapeRef.new(shape: DescribeProfilingGroupResponse)
|
265
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
266
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
267
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
268
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
269
|
+
end)
|
270
|
+
|
271
|
+
api.add_operation(:get_profile, Seahorse::Model::Operation.new.tap do |o|
|
272
|
+
o.name = "GetProfile"
|
273
|
+
o.http_method = "GET"
|
274
|
+
o.http_request_uri = "/profilingGroups/{profilingGroupName}/profile"
|
275
|
+
o.input = Shapes::ShapeRef.new(shape: GetProfileRequest)
|
276
|
+
o.output = Shapes::ShapeRef.new(shape: GetProfileResponse)
|
277
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
278
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
279
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
280
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
281
|
+
end)
|
282
|
+
|
283
|
+
api.add_operation(:list_profile_times, Seahorse::Model::Operation.new.tap do |o|
|
284
|
+
o.name = "ListProfileTimes"
|
285
|
+
o.http_method = "GET"
|
286
|
+
o.http_request_uri = "/profilingGroups/{profilingGroupName}/profileTimes"
|
287
|
+
o.input = Shapes::ShapeRef.new(shape: ListProfileTimesRequest)
|
288
|
+
o.output = Shapes::ShapeRef.new(shape: ListProfileTimesResponse)
|
289
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
290
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
291
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
292
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
293
|
+
o[:pager] = Aws::Pager.new(
|
294
|
+
limit_key: "max_results",
|
295
|
+
tokens: {
|
296
|
+
"next_token" => "next_token"
|
297
|
+
}
|
298
|
+
)
|
299
|
+
end)
|
300
|
+
|
301
|
+
api.add_operation(:list_profiling_groups, Seahorse::Model::Operation.new.tap do |o|
|
302
|
+
o.name = "ListProfilingGroups"
|
303
|
+
o.http_method = "GET"
|
304
|
+
o.http_request_uri = "/profilingGroups"
|
305
|
+
o.input = Shapes::ShapeRef.new(shape: ListProfilingGroupsRequest)
|
306
|
+
o.output = Shapes::ShapeRef.new(shape: ListProfilingGroupsResponse)
|
307
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
308
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
309
|
+
o[:pager] = Aws::Pager.new(
|
310
|
+
limit_key: "max_results",
|
311
|
+
tokens: {
|
312
|
+
"next_token" => "next_token"
|
313
|
+
}
|
314
|
+
)
|
315
|
+
end)
|
316
|
+
|
317
|
+
api.add_operation(:post_agent_profile, Seahorse::Model::Operation.new.tap do |o|
|
318
|
+
o.name = "PostAgentProfile"
|
319
|
+
o.http_method = "POST"
|
320
|
+
o.http_request_uri = "/profilingGroups/{profilingGroupName}/agentProfile"
|
321
|
+
o.input = Shapes::ShapeRef.new(shape: PostAgentProfileRequest)
|
322
|
+
o.output = Shapes::ShapeRef.new(shape: PostAgentProfileResponse)
|
323
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
324
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
325
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
326
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
327
|
+
end)
|
328
|
+
|
329
|
+
api.add_operation(:update_profiling_group, Seahorse::Model::Operation.new.tap do |o|
|
330
|
+
o.name = "UpdateProfilingGroup"
|
331
|
+
o.http_method = "PUT"
|
332
|
+
o.http_request_uri = "/profilingGroups/{profilingGroupName}"
|
333
|
+
o.input = Shapes::ShapeRef.new(shape: UpdateProfilingGroupRequest)
|
334
|
+
o.output = Shapes::ShapeRef.new(shape: UpdateProfilingGroupResponse)
|
335
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
336
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
337
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
338
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
339
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
340
|
+
end)
|
341
|
+
end
|
342
|
+
|
343
|
+
end
|
344
|
+
end
|
File without changes
|
@@ -0,0 +1,110 @@
|
|
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::CodeGuruProfiler
|
9
|
+
module Errors
|
10
|
+
|
11
|
+
extend Aws::Errors::DynamicErrors
|
12
|
+
|
13
|
+
class ConflictException < ServiceError
|
14
|
+
|
15
|
+
# @param [Seahorse::Client::RequestContext] context
|
16
|
+
# @param [String] message
|
17
|
+
# @param [Aws::CodeGuruProfiler::Types::ConflictException] data
|
18
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
19
|
+
super(context, message, data)
|
20
|
+
end
|
21
|
+
|
22
|
+
# @return [String]
|
23
|
+
def message
|
24
|
+
@message || @data[:message]
|
25
|
+
end
|
26
|
+
|
27
|
+
end
|
28
|
+
|
29
|
+
class InternalServerException < ServiceError
|
30
|
+
|
31
|
+
# @param [Seahorse::Client::RequestContext] context
|
32
|
+
# @param [String] message
|
33
|
+
# @param [Aws::CodeGuruProfiler::Types::InternalServerException] data
|
34
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
35
|
+
super(context, message, data)
|
36
|
+
end
|
37
|
+
|
38
|
+
# @return [String]
|
39
|
+
def message
|
40
|
+
@message || @data[:message]
|
41
|
+
end
|
42
|
+
|
43
|
+
end
|
44
|
+
|
45
|
+
class ResourceNotFoundException < ServiceError
|
46
|
+
|
47
|
+
# @param [Seahorse::Client::RequestContext] context
|
48
|
+
# @param [String] message
|
49
|
+
# @param [Aws::CodeGuruProfiler::Types::ResourceNotFoundException] data
|
50
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
51
|
+
super(context, message, data)
|
52
|
+
end
|
53
|
+
|
54
|
+
# @return [String]
|
55
|
+
def message
|
56
|
+
@message || @data[:message]
|
57
|
+
end
|
58
|
+
|
59
|
+
end
|
60
|
+
|
61
|
+
class ServiceQuotaExceededException < ServiceError
|
62
|
+
|
63
|
+
# @param [Seahorse::Client::RequestContext] context
|
64
|
+
# @param [String] message
|
65
|
+
# @param [Aws::CodeGuruProfiler::Types::ServiceQuotaExceededException] data
|
66
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
67
|
+
super(context, message, data)
|
68
|
+
end
|
69
|
+
|
70
|
+
# @return [String]
|
71
|
+
def message
|
72
|
+
@message || @data[:message]
|
73
|
+
end
|
74
|
+
|
75
|
+
end
|
76
|
+
|
77
|
+
class ThrottlingException < ServiceError
|
78
|
+
|
79
|
+
# @param [Seahorse::Client::RequestContext] context
|
80
|
+
# @param [String] message
|
81
|
+
# @param [Aws::CodeGuruProfiler::Types::ThrottlingException] data
|
82
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
83
|
+
super(context, message, data)
|
84
|
+
end
|
85
|
+
|
86
|
+
# @return [String]
|
87
|
+
def message
|
88
|
+
@message || @data[:message]
|
89
|
+
end
|
90
|
+
|
91
|
+
end
|
92
|
+
|
93
|
+
class ValidationException < ServiceError
|
94
|
+
|
95
|
+
# @param [Seahorse::Client::RequestContext] context
|
96
|
+
# @param [String] message
|
97
|
+
# @param [Aws::CodeGuruProfiler::Types::ValidationException] data
|
98
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
99
|
+
super(context, message, data)
|
100
|
+
end
|
101
|
+
|
102
|
+
# @return [String]
|
103
|
+
def message
|
104
|
+
@message || @data[:message]
|
105
|
+
end
|
106
|
+
|
107
|
+
end
|
108
|
+
|
109
|
+
end
|
110
|
+
end
|