aws-sdk-codeguruprofiler 1.2.0 → 1.7.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: f3c290e3d553bd868a18e31e718fe315871532e3
4
- data.tar.gz: fb975c80f2143ff83d5f1820e677d7887b4bda4a
2
+ SHA256:
3
+ metadata.gz: 4373b7be67d682f57930a38ed64c3b0947c2da73a4f247ae711ae016d854eda9
4
+ data.tar.gz: 0a99b74a3fc259a8df183530fb513205fa05c4d5b69a2022e6141197fcf77ad6
5
5
  SHA512:
6
- metadata.gz: f18dedd4b0c56e960c31f46e56ce4a105954701ffdff3b085b905422f1e9e15cdd42a55c4d54c56551876668c758b5332e0a8c0b616e5d1de109857d7f170d2c
7
- data.tar.gz: 98cdb80e9b2b31ecb79a5972752b2512a432008a3425cb41af2270646556837f1865d0b5a1b75bcc82f637e74d4f37db9c74d73b4ecc325633ccbee7805ef627
6
+ metadata.gz: 1fd02a3e4e842952413b3446e3212df20b50e5ad4583a9162bb38bcfdaaab9862ddb037409c0c95139d0f84039ae640b7dea32e744f22726e5d4d0febb0ed839
7
+ data.tar.gz: 3d74ec70a4447feaffe63fd48cb8b08f384c6b535a7180c8b37406e5e6de95049db3cfc95f7272d76590ae50bee5cd84605f75f9f53ce14a445f4b160411aba5
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -45,6 +47,6 @@ require_relative 'aws-sdk-codeguruprofiler/customizations'
45
47
  # @service
46
48
  module Aws::CodeGuruProfiler
47
49
 
48
- GEM_VERSION = '1.2.0'
50
+ GEM_VERSION = '1.7.0'
49
51
 
50
52
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -24,6 +26,7 @@ require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
24
26
  require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
25
27
  require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
26
28
  require 'aws-sdk-core/plugins/transfer_encoding.rb'
29
+ require 'aws-sdk-core/plugins/http_checksum.rb'
27
30
  require 'aws-sdk-core/plugins/signature_v4.rb'
28
31
  require 'aws-sdk-core/plugins/protocols/rest_json.rb'
29
32
 
@@ -32,11 +35,11 @@ Aws::Plugins::GlobalConfiguration.add_identifier(:codeguruprofiler)
32
35
  module Aws::CodeGuruProfiler
33
36
  # An API client for CodeGuruProfiler. To construct a client, you need to configure a `:region` and `:credentials`.
34
37
  #
35
- # client = Aws::CodeGuruProfiler::Client.new(
36
- # region: region_name,
37
- # credentials: credentials,
38
- # # ...
39
- # )
38
+ # client = Aws::CodeGuruProfiler::Client.new(
39
+ # region: region_name,
40
+ # credentials: credentials,
41
+ # # ...
42
+ # )
40
43
  #
41
44
  # For details on configuring region and credentials see
42
45
  # the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
@@ -69,6 +72,7 @@ module Aws::CodeGuruProfiler
69
72
  add_plugin(Aws::Plugins::ClientMetricsPlugin)
70
73
  add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
71
74
  add_plugin(Aws::Plugins::TransferEncoding)
75
+ add_plugin(Aws::Plugins::HttpChecksum)
72
76
  add_plugin(Aws::Plugins::SignatureV4)
73
77
  add_plugin(Aws::Plugins::Protocols::RestJson)
74
78
 
@@ -105,7 +109,7 @@ module Aws::CodeGuruProfiler
105
109
  # @option options [required, String] :region
106
110
  # The AWS region to connect to. The configured `:region` is
107
111
  # used to determine the service `:endpoint`. When not passed,
108
- # a default `:region` is search for in the following locations:
112
+ # a default `:region` is searched for in the following locations:
109
113
  #
110
114
  # * `Aws.config[:region]`
111
115
  # * `ENV['AWS_REGION']`
@@ -161,7 +165,7 @@ module Aws::CodeGuruProfiler
161
165
  # @option options [String] :endpoint
162
166
  # The client endpoint is normally constructed from the `:region`
163
167
  # option. You should only configure an `:endpoint` when connecting
164
- # to test endpoints. This should be avalid HTTP(S) URI.
168
+ # to test or custom endpoints. This should be a valid HTTP(S) URI.
165
169
  #
166
170
  # @option options [Integer] :endpoint_cache_max_entries (1000)
167
171
  # Used for the maximum size limit of the LRU cache storing endpoints data
@@ -176,7 +180,7 @@ module Aws::CodeGuruProfiler
176
180
  # requests fetching endpoints information. Defaults to 60 sec.
177
181
  #
178
182
  # @option options [Boolean] :endpoint_discovery (false)
179
- # When set to `true`, endpoint discovery will be enabled for operations when available. Defaults to `false`.
183
+ # When set to `true`, endpoint discovery will be enabled for operations when available.
180
184
  #
181
185
  # @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
182
186
  # The log formatter.
@@ -229,15 +233,19 @@ module Aws::CodeGuruProfiler
229
233
  #
230
234
  # @option options [String] :retry_mode ("legacy")
231
235
  # Specifies which retry algorithm to use. Values are:
232
- # * `legacy` - The pre-existing retry behavior. This is default value if
233
- # no retry mode is provided.
234
- # * `standard` - A standardized set of retry rules across the AWS SDKs.
235
- # This includes support for retry quotas, which limit the number of
236
- # unsuccessful retries a client can make.
237
- # * `adaptive` - An experimental retry mode that includes all the
238
- # functionality of `standard` mode along with automatic client side
239
- # throttling. This is a provisional mode that may change behavior
240
- # in the future.
236
+ #
237
+ # * `legacy` - The pre-existing retry behavior. This is default value if
238
+ # no retry mode is provided.
239
+ #
240
+ # * `standard` - A standardized set of retry rules across the AWS SDKs.
241
+ # This includes support for retry quotas, which limit the number of
242
+ # unsuccessful retries a client can make.
243
+ #
244
+ # * `adaptive` - An experimental retry mode that includes all the
245
+ # functionality of `standard` mode along with automatic client side
246
+ # throttling. This is a provisional mode that may change behavior
247
+ # in the future.
248
+ #
241
249
  #
242
250
  # @option options [String] :secret_access_key
243
251
  #
@@ -265,8 +273,7 @@ module Aws::CodeGuruProfiler
265
273
  #
266
274
  # @option options [Integer] :http_read_timeout (60) The default
267
275
  # number of seconds to wait for response data. This value can
268
- # safely be set
269
- # per-request on the session yielded by {#session_for}.
276
+ # safely be set per-request on the session.
270
277
  #
271
278
  # @option options [Float] :http_idle_timeout (5) The number of
272
279
  # seconds a connection is allowed to sit idle before it is
@@ -278,7 +285,7 @@ module Aws::CodeGuruProfiler
278
285
  # request body. This option has no effect unless the request has
279
286
  # "Expect" header set to "100-continue". Defaults to `nil` which
280
287
  # disables this behaviour. This value can safely be set per
281
- # request on the session yielded by {#session_for}.
288
+ # request on the session.
282
289
  #
283
290
  # @option options [Boolean] :http_wire_trace (false) When `true`,
284
291
  # HTTP debug output will be sent to the `:logger`.
@@ -445,6 +452,36 @@ module Aws::CodeGuruProfiler
445
452
  req.send_request(options)
446
453
  end
447
454
 
455
+ # Gets the profiling group policy.
456
+ #
457
+ # @option params [required, String] :profiling_group_name
458
+ # The name of the profiling group.
459
+ #
460
+ # @return [Types::GetPolicyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
461
+ #
462
+ # * {Types::GetPolicyResponse#policy #policy} => String
463
+ # * {Types::GetPolicyResponse#revision_id #revision_id} => String
464
+ #
465
+ # @example Request syntax with placeholder values
466
+ #
467
+ # resp = client.get_policy({
468
+ # profiling_group_name: "ProfilingGroupName", # required
469
+ # })
470
+ #
471
+ # @example Response structure
472
+ #
473
+ # resp.policy #=> String
474
+ # resp.revision_id #=> String
475
+ #
476
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguruprofiler-2019-07-18/GetPolicy AWS API Documentation
477
+ #
478
+ # @overload get_policy(params = {})
479
+ # @param [Hash] params ({})
480
+ def get_policy(params = {}, options = {})
481
+ req = build_request(:get_policy, params)
482
+ req.send_request(options)
483
+ end
484
+
448
485
  # Gets the aggregated profile of a profiling group for the specified
449
486
  # time range. If the requested time range does not align with the
450
487
  # available aggregated profiles, it is expanded to attain alignment. If
@@ -563,6 +600,8 @@ module Aws::CodeGuruProfiler
563
600
  # * {Types::ListProfileTimesResponse#next_token #next_token} => String
564
601
  # * {Types::ListProfileTimesResponse#profile_times #profile_times} => Array<Types::ProfileTime>
565
602
  #
603
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
604
+ #
566
605
  # @example Request syntax with placeholder values
567
606
  #
568
607
  # resp = client.list_profile_times({
@@ -622,6 +661,8 @@ module Aws::CodeGuruProfiler
622
661
  # * {Types::ListProfilingGroupsResponse#profiling_group_names #profiling_group_names} => Array<String>
623
662
  # * {Types::ListProfilingGroupsResponse#profiling_groups #profiling_groups} => Array<Types::ProfilingGroupDescription>
624
663
  #
664
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
665
+ #
625
666
  # @example Request syntax with placeholder values
626
667
  #
627
668
  # resp = client.list_profiling_groups({
@@ -685,6 +726,92 @@ module Aws::CodeGuruProfiler
685
726
  req.send_request(options)
686
727
  end
687
728
 
729
+ # Provides permission to the principals. This overwrites the existing
730
+ # permissions, and is not additive.
731
+ #
732
+ # @option params [required, String] :action_group
733
+ # The list of actions that the users and roles can perform on the
734
+ # profiling group.
735
+ #
736
+ # @option params [required, Array<String>] :principals
737
+ # The list of role and user ARNs or the accountId that needs access
738
+ # (wildcards are not allowed).
739
+ #
740
+ # @option params [required, String] :profiling_group_name
741
+ # The name of the profiling group.
742
+ #
743
+ # @option params [String] :revision_id
744
+ # A unique identifier for the current revision of the policy. This is
745
+ # required, if a policy exists for the profiling group. This is not
746
+ # required when creating the policy for the first time.
747
+ #
748
+ # @return [Types::PutPermissionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
749
+ #
750
+ # * {Types::PutPermissionResponse#policy #policy} => String
751
+ # * {Types::PutPermissionResponse#revision_id #revision_id} => String
752
+ #
753
+ # @example Request syntax with placeholder values
754
+ #
755
+ # resp = client.put_permission({
756
+ # action_group: "agentPermissions", # required, accepts agentPermissions
757
+ # principals: ["Principal"], # required
758
+ # profiling_group_name: "ProfilingGroupName", # required
759
+ # revision_id: "RevisionId",
760
+ # })
761
+ #
762
+ # @example Response structure
763
+ #
764
+ # resp.policy #=> String
765
+ # resp.revision_id #=> String
766
+ #
767
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguruprofiler-2019-07-18/PutPermission AWS API Documentation
768
+ #
769
+ # @overload put_permission(params = {})
770
+ # @param [Hash] params ({})
771
+ def put_permission(params = {}, options = {})
772
+ req = build_request(:put_permission, params)
773
+ req.send_request(options)
774
+ end
775
+
776
+ # Removes statement for the provided action group from the policy.
777
+ #
778
+ # @option params [required, String] :action_group
779
+ # The list of actions that the users and roles can perform on the
780
+ # profiling group.
781
+ #
782
+ # @option params [required, String] :profiling_group_name
783
+ # The name of the profiling group.
784
+ #
785
+ # @option params [required, String] :revision_id
786
+ # A unique identifier for the current revision of the policy.
787
+ #
788
+ # @return [Types::RemovePermissionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
789
+ #
790
+ # * {Types::RemovePermissionResponse#policy #policy} => String
791
+ # * {Types::RemovePermissionResponse#revision_id #revision_id} => String
792
+ #
793
+ # @example Request syntax with placeholder values
794
+ #
795
+ # resp = client.remove_permission({
796
+ # action_group: "agentPermissions", # required, accepts agentPermissions
797
+ # profiling_group_name: "ProfilingGroupName", # required
798
+ # revision_id: "RevisionId", # required
799
+ # })
800
+ #
801
+ # @example Response structure
802
+ #
803
+ # resp.policy #=> String
804
+ # resp.revision_id #=> String
805
+ #
806
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguruprofiler-2019-07-18/RemovePermission AWS API Documentation
807
+ #
808
+ # @overload remove_permission(params = {})
809
+ # @param [Hash] params ({})
810
+ def remove_permission(params = {}, options = {})
811
+ req = build_request(:remove_permission, params)
812
+ req.send_request(options)
813
+ end
814
+
688
815
  # Updates a profiling group.
689
816
  #
690
817
  # @option params [required, Types::AgentOrchestrationConfig] :agent_orchestration_config
@@ -739,7 +866,7 @@ module Aws::CodeGuruProfiler
739
866
  params: params,
740
867
  config: config)
741
868
  context[:gem_name] = 'aws-sdk-codeguruprofiler'
742
- context[:gem_version] = '1.2.0'
869
+ context[:gem_version] = '1.7.0'
743
870
  Seahorse::Client::Request.new(handlers, context)
744
871
  end
745
872
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -11,6 +13,7 @@ module Aws::CodeGuruProfiler
11
13
 
12
14
  include Seahorse::Model
13
15
 
16
+ ActionGroup = Shapes::StringShape.new(name: 'ActionGroup')
14
17
  AgentConfiguration = Shapes::StructureShape.new(name: 'AgentConfiguration')
15
18
  AgentOrchestrationConfig = Shapes::StructureShape.new(name: 'AgentOrchestrationConfig')
16
19
  AgentProfile = Shapes::BlobShape.new(name: 'AgentProfile')
@@ -29,6 +32,8 @@ module Aws::CodeGuruProfiler
29
32
  DescribeProfilingGroupRequest = Shapes::StructureShape.new(name: 'DescribeProfilingGroupRequest')
30
33
  DescribeProfilingGroupResponse = Shapes::StructureShape.new(name: 'DescribeProfilingGroupResponse')
31
34
  FleetInstanceId = Shapes::StringShape.new(name: 'FleetInstanceId')
35
+ GetPolicyRequest = Shapes::StructureShape.new(name: 'GetPolicyRequest')
36
+ GetPolicyResponse = Shapes::StructureShape.new(name: 'GetPolicyResponse')
32
37
  GetProfileRequest = Shapes::StructureShape.new(name: 'GetProfileRequest')
33
38
  GetProfileResponse = Shapes::StructureShape.new(name: 'GetProfileResponse')
34
39
  Integer = Shapes::IntegerShape.new(name: 'Integer')
@@ -44,6 +49,8 @@ module Aws::CodeGuruProfiler
44
49
  Period = Shapes::StringShape.new(name: 'Period')
45
50
  PostAgentProfileRequest = Shapes::StructureShape.new(name: 'PostAgentProfileRequest')
46
51
  PostAgentProfileResponse = Shapes::StructureShape.new(name: 'PostAgentProfileResponse')
52
+ Principal = Shapes::StringShape.new(name: 'Principal')
53
+ Principals = Shapes::ListShape.new(name: 'Principals')
47
54
  ProfileTime = Shapes::StructureShape.new(name: 'ProfileTime')
48
55
  ProfileTimes = Shapes::ListShape.new(name: 'ProfileTimes')
49
56
  ProfilingGroupArn = Shapes::StringShape.new(name: 'ProfilingGroupArn')
@@ -52,7 +59,12 @@ module Aws::CodeGuruProfiler
52
59
  ProfilingGroupName = Shapes::StringShape.new(name: 'ProfilingGroupName')
53
60
  ProfilingGroupNames = Shapes::ListShape.new(name: 'ProfilingGroupNames')
54
61
  ProfilingStatus = Shapes::StructureShape.new(name: 'ProfilingStatus')
62
+ PutPermissionRequest = Shapes::StructureShape.new(name: 'PutPermissionRequest')
63
+ PutPermissionResponse = Shapes::StructureShape.new(name: 'PutPermissionResponse')
64
+ RemovePermissionRequest = Shapes::StructureShape.new(name: 'RemovePermissionRequest')
65
+ RemovePermissionResponse = Shapes::StructureShape.new(name: 'RemovePermissionResponse')
55
66
  ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
67
+ RevisionId = Shapes::StringShape.new(name: 'RevisionId')
56
68
  ServiceQuotaExceededException = Shapes::StructureShape.new(name: 'ServiceQuotaExceededException')
57
69
  String = Shapes::StringShape.new(name: 'String')
58
70
  ThrottlingException = Shapes::StructureShape.new(name: 'ThrottlingException')
@@ -107,6 +119,13 @@ module Aws::CodeGuruProfiler
107
119
  DescribeProfilingGroupResponse[:payload] = :profiling_group
108
120
  DescribeProfilingGroupResponse[:payload_member] = DescribeProfilingGroupResponse.member(:profiling_group)
109
121
 
122
+ GetPolicyRequest.add_member(:profiling_group_name, Shapes::ShapeRef.new(shape: ProfilingGroupName, required: true, location: "uri", location_name: "profilingGroupName"))
123
+ GetPolicyRequest.struct_class = Types::GetPolicyRequest
124
+
125
+ GetPolicyResponse.add_member(:policy, Shapes::ShapeRef.new(shape: String, required: true, location_name: "policy"))
126
+ GetPolicyResponse.add_member(:revision_id, Shapes::ShapeRef.new(shape: RevisionId, required: true, location_name: "revisionId"))
127
+ GetPolicyResponse.struct_class = Types::GetPolicyResponse
128
+
110
129
  GetProfileRequest.add_member(:accept, Shapes::ShapeRef.new(shape: String, location: "header", location_name: "Accept"))
111
130
  GetProfileRequest.add_member(:end_time, Shapes::ShapeRef.new(shape: Timestamp, location: "querystring", location_name: "endTime"))
112
131
  GetProfileRequest.add_member(:max_depth, Shapes::ShapeRef.new(shape: MaxDepth, location: "querystring", location_name: "maxDepth"))
@@ -158,6 +177,8 @@ module Aws::CodeGuruProfiler
158
177
 
159
178
  PostAgentProfileResponse.struct_class = Types::PostAgentProfileResponse
160
179
 
180
+ Principals.member = Shapes::ShapeRef.new(shape: Principal)
181
+
161
182
  ProfileTime.add_member(:start, Shapes::ShapeRef.new(shape: Timestamp, location_name: "start"))
162
183
  ProfileTime.struct_class = Types::ProfileTime
163
184
 
@@ -180,6 +201,25 @@ module Aws::CodeGuruProfiler
180
201
  ProfilingStatus.add_member(:latest_aggregated_profile, Shapes::ShapeRef.new(shape: AggregatedProfileTime, location_name: "latestAggregatedProfile"))
181
202
  ProfilingStatus.struct_class = Types::ProfilingStatus
182
203
 
204
+ PutPermissionRequest.add_member(:action_group, Shapes::ShapeRef.new(shape: ActionGroup, required: true, location: "uri", location_name: "actionGroup"))
205
+ PutPermissionRequest.add_member(:principals, Shapes::ShapeRef.new(shape: Principals, required: true, location_name: "principals"))
206
+ PutPermissionRequest.add_member(:profiling_group_name, Shapes::ShapeRef.new(shape: ProfilingGroupName, required: true, location: "uri", location_name: "profilingGroupName"))
207
+ PutPermissionRequest.add_member(:revision_id, Shapes::ShapeRef.new(shape: RevisionId, location_name: "revisionId"))
208
+ PutPermissionRequest.struct_class = Types::PutPermissionRequest
209
+
210
+ PutPermissionResponse.add_member(:policy, Shapes::ShapeRef.new(shape: String, required: true, location_name: "policy"))
211
+ PutPermissionResponse.add_member(:revision_id, Shapes::ShapeRef.new(shape: RevisionId, required: true, location_name: "revisionId"))
212
+ PutPermissionResponse.struct_class = Types::PutPermissionResponse
213
+
214
+ RemovePermissionRequest.add_member(:action_group, Shapes::ShapeRef.new(shape: ActionGroup, required: true, location: "uri", location_name: "actionGroup"))
215
+ RemovePermissionRequest.add_member(:profiling_group_name, Shapes::ShapeRef.new(shape: ProfilingGroupName, required: true, location: "uri", location_name: "profilingGroupName"))
216
+ RemovePermissionRequest.add_member(:revision_id, Shapes::ShapeRef.new(shape: RevisionId, required: true, location: "querystring", location_name: "revisionId"))
217
+ RemovePermissionRequest.struct_class = Types::RemovePermissionRequest
218
+
219
+ RemovePermissionResponse.add_member(:policy, Shapes::ShapeRef.new(shape: String, required: true, location_name: "policy"))
220
+ RemovePermissionResponse.add_member(:revision_id, Shapes::ShapeRef.new(shape: RevisionId, required: true, location_name: "revisionId"))
221
+ RemovePermissionResponse.struct_class = Types::RemovePermissionResponse
222
+
183
223
  ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
184
224
  ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
185
225
 
@@ -268,6 +308,17 @@ module Aws::CodeGuruProfiler
268
308
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
269
309
  end)
270
310
 
311
+ api.add_operation(:get_policy, Seahorse::Model::Operation.new.tap do |o|
312
+ o.name = "GetPolicy"
313
+ o.http_method = "GET"
314
+ o.http_request_uri = "/profilingGroups/{profilingGroupName}/policy"
315
+ o.input = Shapes::ShapeRef.new(shape: GetPolicyRequest)
316
+ o.output = Shapes::ShapeRef.new(shape: GetPolicyResponse)
317
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
318
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
319
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
320
+ end)
321
+
271
322
  api.add_operation(:get_profile, Seahorse::Model::Operation.new.tap do |o|
272
323
  o.name = "GetProfile"
273
324
  o.http_method = "GET"
@@ -326,6 +377,32 @@ module Aws::CodeGuruProfiler
326
377
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
327
378
  end)
328
379
 
380
+ api.add_operation(:put_permission, Seahorse::Model::Operation.new.tap do |o|
381
+ o.name = "PutPermission"
382
+ o.http_method = "PUT"
383
+ o.http_request_uri = "/profilingGroups/{profilingGroupName}/policy/{actionGroup}"
384
+ o.input = Shapes::ShapeRef.new(shape: PutPermissionRequest)
385
+ o.output = Shapes::ShapeRef.new(shape: PutPermissionResponse)
386
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
387
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
388
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
389
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
390
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
391
+ end)
392
+
393
+ api.add_operation(:remove_permission, Seahorse::Model::Operation.new.tap do |o|
394
+ o.name = "RemovePermission"
395
+ o.http_method = "DELETE"
396
+ o.http_request_uri = "/profilingGroups/{profilingGroupName}/policy/{actionGroup}"
397
+ o.input = Shapes::ShapeRef.new(shape: RemovePermissionRequest)
398
+ o.output = Shapes::ShapeRef.new(shape: RemovePermissionResponse)
399
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
400
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
401
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
402
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
403
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
404
+ end)
405
+
329
406
  api.add_operation(:update_profiling_group, Seahorse::Model::Operation.new.tap do |o|
330
407
  o.name = "UpdateProfilingGroup"
331
408
  o.http_method = "PUT"
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -6,13 +8,7 @@
6
8
  # WARNING ABOUT GENERATED CODE
7
9
 
8
10
  module Aws::CodeGuruProfiler
9
- # This class provides a resource oriented interface for CodeGuruProfiler.
10
- # To create a resource object:
11
- # resource = Aws::CodeGuruProfiler::Resource.new(region: 'us-west-2')
12
- # You can supply a client object with custom configuration that will be used for all resource operations.
13
- # If you do not pass +:client+, a default client will be constructed.
14
- # client = Aws::CodeGuruProfiler::Client.new(region: 'us-west-2')
15
- # resource = Aws::CodeGuruProfiler::Resource.new(client: client)
11
+
16
12
  class Resource
17
13
 
18
14
  # @param options ({})
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -19,6 +21,7 @@ module Aws::CodeGuruProfiler
19
21
  class AgentConfiguration < Struct.new(
20
22
  :period_in_seconds,
21
23
  :should_profile)
24
+ SENSITIVE = []
22
25
  include Aws::Structure
23
26
  end
24
27
 
@@ -36,6 +39,7 @@ module Aws::CodeGuruProfiler
36
39
  #
37
40
  class AgentOrchestrationConfig < Struct.new(
38
41
  :profiling_enabled)
42
+ SENSITIVE = []
39
43
  include Aws::Structure
40
44
  end
41
45
 
@@ -55,6 +59,7 @@ module Aws::CodeGuruProfiler
55
59
  class AggregatedProfileTime < Struct.new(
56
60
  :period,
57
61
  :start)
62
+ SENSITIVE = []
58
63
  include Aws::Structure
59
64
  end
60
65
 
@@ -79,6 +84,7 @@ module Aws::CodeGuruProfiler
79
84
  class ConfigureAgentRequest < Struct.new(
80
85
  :fleet_instance_id,
81
86
  :profiling_group_name)
87
+ SENSITIVE = []
82
88
  include Aws::Structure
83
89
  end
84
90
 
@@ -91,6 +97,7 @@ module Aws::CodeGuruProfiler
91
97
  #
92
98
  class ConfigureAgentResponse < Struct.new(
93
99
  :configuration)
100
+ SENSITIVE = []
94
101
  include Aws::Structure
95
102
  end
96
103
 
@@ -105,6 +112,7 @@ module Aws::CodeGuruProfiler
105
112
  #
106
113
  class ConflictException < Struct.new(
107
114
  :message)
115
+ SENSITIVE = []
108
116
  include Aws::Structure
109
117
  end
110
118
 
@@ -146,6 +154,7 @@ module Aws::CodeGuruProfiler
146
154
  :agent_orchestration_config,
147
155
  :client_token,
148
156
  :profiling_group_name)
157
+ SENSITIVE = []
149
158
  include Aws::Structure
150
159
  end
151
160
 
@@ -159,6 +168,7 @@ module Aws::CodeGuruProfiler
159
168
  #
160
169
  class CreateProfilingGroupResponse < Struct.new(
161
170
  :profiling_group)
171
+ SENSITIVE = []
162
172
  include Aws::Structure
163
173
  end
164
174
 
@@ -179,6 +189,7 @@ module Aws::CodeGuruProfiler
179
189
  #
180
190
  class DeleteProfilingGroupRequest < Struct.new(
181
191
  :profiling_group_name)
192
+ SENSITIVE = []
182
193
  include Aws::Structure
183
194
  end
184
195
 
@@ -205,6 +216,7 @@ module Aws::CodeGuruProfiler
205
216
  #
206
217
  class DescribeProfilingGroupRequest < Struct.new(
207
218
  :profiling_group_name)
219
+ SENSITIVE = []
208
220
  include Aws::Structure
209
221
  end
210
222
 
@@ -218,6 +230,47 @@ module Aws::CodeGuruProfiler
218
230
  #
219
231
  class DescribeProfilingGroupResponse < Struct.new(
220
232
  :profiling_group)
233
+ SENSITIVE = []
234
+ include Aws::Structure
235
+ end
236
+
237
+ # The structure representing the getPolicyRequest.
238
+ #
239
+ # @note When making an API call, you may pass GetPolicyRequest
240
+ # data as a hash:
241
+ #
242
+ # {
243
+ # profiling_group_name: "ProfilingGroupName", # required
244
+ # }
245
+ #
246
+ # @!attribute [rw] profiling_group_name
247
+ # The name of the profiling group.
248
+ # @return [String]
249
+ #
250
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguruprofiler-2019-07-18/GetPolicyRequest AWS API Documentation
251
+ #
252
+ class GetPolicyRequest < Struct.new(
253
+ :profiling_group_name)
254
+ SENSITIVE = []
255
+ include Aws::Structure
256
+ end
257
+
258
+ # The structure representing the getPolicyResponse.
259
+ #
260
+ # @!attribute [rw] policy
261
+ # The resource-based policy attached to the `ProfilingGroup`.
262
+ # @return [String]
263
+ #
264
+ # @!attribute [rw] revision_id
265
+ # A unique identifier for the current revision of the policy.
266
+ # @return [String]
267
+ #
268
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguruprofiler-2019-07-18/GetPolicyResponse AWS API Documentation
269
+ #
270
+ class GetPolicyResponse < Struct.new(
271
+ :policy,
272
+ :revision_id)
273
+ SENSITIVE = []
221
274
  include Aws::Structure
222
275
  end
223
276
 
@@ -277,6 +330,7 @@ module Aws::CodeGuruProfiler
277
330
  :period,
278
331
  :profiling_group_name,
279
332
  :start_time)
333
+ SENSITIVE = []
280
334
  include Aws::Structure
281
335
  end
282
336
 
@@ -301,6 +355,7 @@ module Aws::CodeGuruProfiler
301
355
  :content_encoding,
302
356
  :content_type,
303
357
  :profile)
358
+ SENSITIVE = []
304
359
  include Aws::Structure
305
360
  end
306
361
 
@@ -314,6 +369,7 @@ module Aws::CodeGuruProfiler
314
369
  #
315
370
  class InternalServerException < Struct.new(
316
371
  :message)
372
+ SENSITIVE = []
317
373
  include Aws::Structure
318
374
  end
319
375
 
@@ -386,6 +442,7 @@ module Aws::CodeGuruProfiler
386
442
  :period,
387
443
  :profiling_group_name,
388
444
  :start_time)
445
+ SENSITIVE = []
389
446
  include Aws::Structure
390
447
  end
391
448
 
@@ -409,6 +466,7 @@ module Aws::CodeGuruProfiler
409
466
  class ListProfileTimesResponse < Struct.new(
410
467
  :next_token,
411
468
  :profile_times)
469
+ SENSITIVE = []
412
470
  include Aws::Structure
413
471
  end
414
472
 
@@ -456,6 +514,7 @@ module Aws::CodeGuruProfiler
456
514
  :include_description,
457
515
  :max_results,
458
516
  :next_token)
517
+ SENSITIVE = []
459
518
  include Aws::Structure
460
519
  end
461
520
 
@@ -483,6 +542,7 @@ module Aws::CodeGuruProfiler
483
542
  :next_token,
484
543
  :profiling_group_names,
485
544
  :profiling_groups)
545
+ SENSITIVE = []
486
546
  include Aws::Structure
487
547
  end
488
548
 
@@ -519,6 +579,7 @@ module Aws::CodeGuruProfiler
519
579
  :content_type,
520
580
  :profile_token,
521
581
  :profiling_group_name)
582
+ SENSITIVE = []
522
583
  include Aws::Structure
523
584
  end
524
585
 
@@ -538,6 +599,7 @@ module Aws::CodeGuruProfiler
538
599
  #
539
600
  class ProfileTime < Struct.new(
540
601
  :start)
602
+ SENSITIVE = []
541
603
  include Aws::Structure
542
604
  end
543
605
 
@@ -577,6 +639,7 @@ module Aws::CodeGuruProfiler
577
639
  :name,
578
640
  :profiling_status,
579
641
  :updated_at)
642
+ SENSITIVE = []
580
643
  include Aws::Structure
581
644
  end
582
645
 
@@ -602,6 +665,122 @@ module Aws::CodeGuruProfiler
602
665
  :latest_agent_orchestrated_at,
603
666
  :latest_agent_profile_reported_at,
604
667
  :latest_aggregated_profile)
668
+ SENSITIVE = []
669
+ include Aws::Structure
670
+ end
671
+
672
+ # The structure representing the putPermissionRequest.
673
+ #
674
+ # @note When making an API call, you may pass PutPermissionRequest
675
+ # data as a hash:
676
+ #
677
+ # {
678
+ # action_group: "agentPermissions", # required, accepts agentPermissions
679
+ # principals: ["Principal"], # required
680
+ # profiling_group_name: "ProfilingGroupName", # required
681
+ # revision_id: "RevisionId",
682
+ # }
683
+ #
684
+ # @!attribute [rw] action_group
685
+ # The list of actions that the users and roles can perform on the
686
+ # profiling group.
687
+ # @return [String]
688
+ #
689
+ # @!attribute [rw] principals
690
+ # The list of role and user ARNs or the accountId that needs access
691
+ # (wildcards are not allowed).
692
+ # @return [Array<String>]
693
+ #
694
+ # @!attribute [rw] profiling_group_name
695
+ # The name of the profiling group.
696
+ # @return [String]
697
+ #
698
+ # @!attribute [rw] revision_id
699
+ # A unique identifier for the current revision of the policy. This is
700
+ # required, if a policy exists for the profiling group. This is not
701
+ # required when creating the policy for the first time.
702
+ # @return [String]
703
+ #
704
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguruprofiler-2019-07-18/PutPermissionRequest AWS API Documentation
705
+ #
706
+ class PutPermissionRequest < Struct.new(
707
+ :action_group,
708
+ :principals,
709
+ :profiling_group_name,
710
+ :revision_id)
711
+ SENSITIVE = []
712
+ include Aws::Structure
713
+ end
714
+
715
+ # The structure representing the putPermissionResponse.
716
+ #
717
+ # @!attribute [rw] policy
718
+ # The resource-based policy.
719
+ # @return [String]
720
+ #
721
+ # @!attribute [rw] revision_id
722
+ # A unique identifier for the current revision of the policy.
723
+ # @return [String]
724
+ #
725
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguruprofiler-2019-07-18/PutPermissionResponse AWS API Documentation
726
+ #
727
+ class PutPermissionResponse < Struct.new(
728
+ :policy,
729
+ :revision_id)
730
+ SENSITIVE = []
731
+ include Aws::Structure
732
+ end
733
+
734
+ # The structure representing the removePermissionRequest.
735
+ #
736
+ # @note When making an API call, you may pass RemovePermissionRequest
737
+ # data as a hash:
738
+ #
739
+ # {
740
+ # action_group: "agentPermissions", # required, accepts agentPermissions
741
+ # profiling_group_name: "ProfilingGroupName", # required
742
+ # revision_id: "RevisionId", # required
743
+ # }
744
+ #
745
+ # @!attribute [rw] action_group
746
+ # The list of actions that the users and roles can perform on the
747
+ # profiling group.
748
+ # @return [String]
749
+ #
750
+ # @!attribute [rw] profiling_group_name
751
+ # The name of the profiling group.
752
+ # @return [String]
753
+ #
754
+ # @!attribute [rw] revision_id
755
+ # A unique identifier for the current revision of the policy.
756
+ # @return [String]
757
+ #
758
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguruprofiler-2019-07-18/RemovePermissionRequest AWS API Documentation
759
+ #
760
+ class RemovePermissionRequest < Struct.new(
761
+ :action_group,
762
+ :profiling_group_name,
763
+ :revision_id)
764
+ SENSITIVE = []
765
+ include Aws::Structure
766
+ end
767
+
768
+ # The structure representing the removePermissionResponse.
769
+ #
770
+ # @!attribute [rw] policy
771
+ # The resource-based policy.
772
+ # @return [String]
773
+ #
774
+ # @!attribute [rw] revision_id
775
+ # A unique identifier for the current revision of the policy.
776
+ # @return [String]
777
+ #
778
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguruprofiler-2019-07-18/RemovePermissionResponse AWS API Documentation
779
+ #
780
+ class RemovePermissionResponse < Struct.new(
781
+ :policy,
782
+ :revision_id)
783
+ SENSITIVE = []
605
784
  include Aws::Structure
606
785
  end
607
786
 
@@ -614,6 +793,7 @@ module Aws::CodeGuruProfiler
614
793
  #
615
794
  class ResourceNotFoundException < Struct.new(
616
795
  :message)
796
+ SENSITIVE = []
617
797
  include Aws::Structure
618
798
  end
619
799
 
@@ -632,6 +812,7 @@ module Aws::CodeGuruProfiler
632
812
  #
633
813
  class ServiceQuotaExceededException < Struct.new(
634
814
  :message)
815
+ SENSITIVE = []
635
816
  include Aws::Structure
636
817
  end
637
818
 
@@ -644,6 +825,7 @@ module Aws::CodeGuruProfiler
644
825
  #
645
826
  class ThrottlingException < Struct.new(
646
827
  :message)
828
+ SENSITIVE = []
647
829
  include Aws::Structure
648
830
  end
649
831
 
@@ -671,6 +853,7 @@ module Aws::CodeGuruProfiler
671
853
  class UpdateProfilingGroupRequest < Struct.new(
672
854
  :agent_orchestration_config,
673
855
  :profiling_group_name)
856
+ SENSITIVE = []
674
857
  include Aws::Structure
675
858
  end
676
859
 
@@ -684,6 +867,7 @@ module Aws::CodeGuruProfiler
684
867
  #
685
868
  class UpdateProfilingGroupResponse < Struct.new(
686
869
  :profiling_group)
870
+ SENSITIVE = []
687
871
  include Aws::Structure
688
872
  end
689
873
 
@@ -696,6 +880,7 @@ module Aws::CodeGuruProfiler
696
880
  #
697
881
  class ValidationException < Struct.new(
698
882
  :message)
883
+ SENSITIVE = []
699
884
  include Aws::Structure
700
885
  end
701
886
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-codeguruprofiler
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-03-09 00:00:00.000000000 Z
11
+ date: 2020-06-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.71.0
22
+ version: 3.99.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.71.0
32
+ version: 3.99.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -81,7 +81,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
81
81
  version: '0'
82
82
  requirements: []
83
83
  rubyforge_project:
84
- rubygems_version: 2.5.2.3
84
+ rubygems_version: 2.7.6.2
85
85
  signing_key:
86
86
  specification_version: 4
87
87
  summary: AWS SDK for Ruby - Amazon CodeGuru Profiler