aws-sdk-codeguruprofiler 1.2.0 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
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: c01522170b3f73a996d76b893c4298578355ac5d2267fb38ac4881c53131bd0b
4
+ data.tar.gz: 51de7e066af6bc542825a5deaa9d38983292f974852f5cee3f5bffc4e7409bc8
5
5
  SHA512:
6
- metadata.gz: f18dedd4b0c56e960c31f46e56ce4a105954701ffdff3b085b905422f1e9e15cdd42a55c4d54c56551876668c758b5332e0a8c0b616e5d1de109857d7f170d2c
7
- data.tar.gz: 98cdb80e9b2b31ecb79a5972752b2512a432008a3425cb41af2270646556837f1865d0b5a1b75bcc82f637e74d4f37db9c74d73b4ecc325633ccbee7805ef627
6
+ metadata.gz: 9a8ccf725185f5fe9fe18c9fcd9e182a00cc820d80b07559fa9da0e760d0195ea04051afeb530d108cf80eaa54896e9f1e3862a5726624ca3dc249c6d346ddc5
7
+ data.tar.gz: 25cd11417309a85e863b640b64dd5b706bca57c37bf1fee5cb294de8a8a08611abe0547ac161bac5c4d66941217faf9373bedc5d2e119b2c62f29f9a264a9a8c
@@ -45,6 +45,6 @@ require_relative 'aws-sdk-codeguruprofiler/customizations'
45
45
  # @service
46
46
  module Aws::CodeGuruProfiler
47
47
 
48
- GEM_VERSION = '1.2.0'
48
+ GEM_VERSION = '1.3.0'
49
49
 
50
50
  end
@@ -32,11 +32,11 @@ Aws::Plugins::GlobalConfiguration.add_identifier(:codeguruprofiler)
32
32
  module Aws::CodeGuruProfiler
33
33
  # An API client for CodeGuruProfiler. To construct a client, you need to configure a `:region` and `:credentials`.
34
34
  #
35
- # client = Aws::CodeGuruProfiler::Client.new(
36
- # region: region_name,
37
- # credentials: credentials,
38
- # # ...
39
- # )
35
+ # client = Aws::CodeGuruProfiler::Client.new(
36
+ # region: region_name,
37
+ # credentials: credentials,
38
+ # # ...
39
+ # )
40
40
  #
41
41
  # For details on configuring region and credentials see
42
42
  # the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
@@ -229,15 +229,19 @@ module Aws::CodeGuruProfiler
229
229
  #
230
230
  # @option options [String] :retry_mode ("legacy")
231
231
  # 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.
232
+ #
233
+ # * `legacy` - The pre-existing retry behavior. This is default value if
234
+ # no retry mode is provided.
235
+ #
236
+ # * `standard` - A standardized set of retry rules across the AWS SDKs.
237
+ # This includes support for retry quotas, which limit the number of
238
+ # unsuccessful retries a client can make.
239
+ #
240
+ # * `adaptive` - An experimental retry mode that includes all the
241
+ # functionality of `standard` mode along with automatic client side
242
+ # throttling. This is a provisional mode that may change behavior
243
+ # in the future.
244
+ #
241
245
  #
242
246
  # @option options [String] :secret_access_key
243
247
  #
@@ -265,8 +269,7 @@ module Aws::CodeGuruProfiler
265
269
  #
266
270
  # @option options [Integer] :http_read_timeout (60) The default
267
271
  # 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}.
272
+ # safely be set per-request on the session.
270
273
  #
271
274
  # @option options [Float] :http_idle_timeout (5) The number of
272
275
  # seconds a connection is allowed to sit idle before it is
@@ -278,7 +281,7 @@ module Aws::CodeGuruProfiler
278
281
  # request body. This option has no effect unless the request has
279
282
  # "Expect" header set to "100-continue". Defaults to `nil` which
280
283
  # disables this behaviour. This value can safely be set per
281
- # request on the session yielded by {#session_for}.
284
+ # request on the session.
282
285
  #
283
286
  # @option options [Boolean] :http_wire_trace (false) When `true`,
284
287
  # HTTP debug output will be sent to the `:logger`.
@@ -445,6 +448,36 @@ module Aws::CodeGuruProfiler
445
448
  req.send_request(options)
446
449
  end
447
450
 
451
+ # Gets the profiling group policy.
452
+ #
453
+ # @option params [required, String] :profiling_group_name
454
+ # The name of the profiling group.
455
+ #
456
+ # @return [Types::GetPolicyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
457
+ #
458
+ # * {Types::GetPolicyResponse#policy #policy} => String
459
+ # * {Types::GetPolicyResponse#revision_id #revision_id} => String
460
+ #
461
+ # @example Request syntax with placeholder values
462
+ #
463
+ # resp = client.get_policy({
464
+ # profiling_group_name: "ProfilingGroupName", # required
465
+ # })
466
+ #
467
+ # @example Response structure
468
+ #
469
+ # resp.policy #=> String
470
+ # resp.revision_id #=> String
471
+ #
472
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguruprofiler-2019-07-18/GetPolicy AWS API Documentation
473
+ #
474
+ # @overload get_policy(params = {})
475
+ # @param [Hash] params ({})
476
+ def get_policy(params = {}, options = {})
477
+ req = build_request(:get_policy, params)
478
+ req.send_request(options)
479
+ end
480
+
448
481
  # Gets the aggregated profile of a profiling group for the specified
449
482
  # time range. If the requested time range does not align with the
450
483
  # available aggregated profiles, it is expanded to attain alignment. If
@@ -563,6 +596,8 @@ module Aws::CodeGuruProfiler
563
596
  # * {Types::ListProfileTimesResponse#next_token #next_token} => String
564
597
  # * {Types::ListProfileTimesResponse#profile_times #profile_times} => Array<Types::ProfileTime>
565
598
  #
599
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
600
+ #
566
601
  # @example Request syntax with placeholder values
567
602
  #
568
603
  # resp = client.list_profile_times({
@@ -622,6 +657,8 @@ module Aws::CodeGuruProfiler
622
657
  # * {Types::ListProfilingGroupsResponse#profiling_group_names #profiling_group_names} => Array<String>
623
658
  # * {Types::ListProfilingGroupsResponse#profiling_groups #profiling_groups} => Array<Types::ProfilingGroupDescription>
624
659
  #
660
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
661
+ #
625
662
  # @example Request syntax with placeholder values
626
663
  #
627
664
  # resp = client.list_profiling_groups({
@@ -685,6 +722,92 @@ module Aws::CodeGuruProfiler
685
722
  req.send_request(options)
686
723
  end
687
724
 
725
+ # Provides permission to the principals. This overwrites the existing
726
+ # permissions, and is not additive.
727
+ #
728
+ # @option params [required, String] :action_group
729
+ # The list of actions that the users and roles can perform on the
730
+ # profiling group.
731
+ #
732
+ # @option params [required, Array<String>] :principals
733
+ # The list of role and user ARNs or the accountId that needs access
734
+ # (wildcards are not allowed).
735
+ #
736
+ # @option params [required, String] :profiling_group_name
737
+ # The name of the profiling group.
738
+ #
739
+ # @option params [String] :revision_id
740
+ # A unique identifier for the current revision of the policy. This is
741
+ # required, if a policy exists for the profiling group. This is not
742
+ # required when creating the policy for the first time.
743
+ #
744
+ # @return [Types::PutPermissionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
745
+ #
746
+ # * {Types::PutPermissionResponse#policy #policy} => String
747
+ # * {Types::PutPermissionResponse#revision_id #revision_id} => String
748
+ #
749
+ # @example Request syntax with placeholder values
750
+ #
751
+ # resp = client.put_permission({
752
+ # action_group: "agentPermissions", # required, accepts agentPermissions
753
+ # principals: ["Principal"], # required
754
+ # profiling_group_name: "ProfilingGroupName", # required
755
+ # revision_id: "RevisionId",
756
+ # })
757
+ #
758
+ # @example Response structure
759
+ #
760
+ # resp.policy #=> String
761
+ # resp.revision_id #=> String
762
+ #
763
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguruprofiler-2019-07-18/PutPermission AWS API Documentation
764
+ #
765
+ # @overload put_permission(params = {})
766
+ # @param [Hash] params ({})
767
+ def put_permission(params = {}, options = {})
768
+ req = build_request(:put_permission, params)
769
+ req.send_request(options)
770
+ end
771
+
772
+ # Removes statement for the provided action group from the policy.
773
+ #
774
+ # @option params [required, String] :action_group
775
+ # The list of actions that the users and roles can perform on the
776
+ # profiling group.
777
+ #
778
+ # @option params [required, String] :profiling_group_name
779
+ # The name of the profiling group.
780
+ #
781
+ # @option params [required, String] :revision_id
782
+ # A unique identifier for the current revision of the policy.
783
+ #
784
+ # @return [Types::RemovePermissionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
785
+ #
786
+ # * {Types::RemovePermissionResponse#policy #policy} => String
787
+ # * {Types::RemovePermissionResponse#revision_id #revision_id} => String
788
+ #
789
+ # @example Request syntax with placeholder values
790
+ #
791
+ # resp = client.remove_permission({
792
+ # action_group: "agentPermissions", # required, accepts agentPermissions
793
+ # profiling_group_name: "ProfilingGroupName", # required
794
+ # revision_id: "RevisionId", # required
795
+ # })
796
+ #
797
+ # @example Response structure
798
+ #
799
+ # resp.policy #=> String
800
+ # resp.revision_id #=> String
801
+ #
802
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguruprofiler-2019-07-18/RemovePermission AWS API Documentation
803
+ #
804
+ # @overload remove_permission(params = {})
805
+ # @param [Hash] params ({})
806
+ def remove_permission(params = {}, options = {})
807
+ req = build_request(:remove_permission, params)
808
+ req.send_request(options)
809
+ end
810
+
688
811
  # Updates a profiling group.
689
812
  #
690
813
  # @option params [required, Types::AgentOrchestrationConfig] :agent_orchestration_config
@@ -739,7 +862,7 @@ module Aws::CodeGuruProfiler
739
862
  params: params,
740
863
  config: config)
741
864
  context[:gem_name] = 'aws-sdk-codeguruprofiler'
742
- context[:gem_version] = '1.2.0'
865
+ context[:gem_version] = '1.3.0'
743
866
  Seahorse::Client::Request.new(handlers, context)
744
867
  end
745
868
 
@@ -11,6 +11,7 @@ module Aws::CodeGuruProfiler
11
11
 
12
12
  include Seahorse::Model
13
13
 
14
+ ActionGroup = Shapes::StringShape.new(name: 'ActionGroup')
14
15
  AgentConfiguration = Shapes::StructureShape.new(name: 'AgentConfiguration')
15
16
  AgentOrchestrationConfig = Shapes::StructureShape.new(name: 'AgentOrchestrationConfig')
16
17
  AgentProfile = Shapes::BlobShape.new(name: 'AgentProfile')
@@ -29,6 +30,8 @@ module Aws::CodeGuruProfiler
29
30
  DescribeProfilingGroupRequest = Shapes::StructureShape.new(name: 'DescribeProfilingGroupRequest')
30
31
  DescribeProfilingGroupResponse = Shapes::StructureShape.new(name: 'DescribeProfilingGroupResponse')
31
32
  FleetInstanceId = Shapes::StringShape.new(name: 'FleetInstanceId')
33
+ GetPolicyRequest = Shapes::StructureShape.new(name: 'GetPolicyRequest')
34
+ GetPolicyResponse = Shapes::StructureShape.new(name: 'GetPolicyResponse')
32
35
  GetProfileRequest = Shapes::StructureShape.new(name: 'GetProfileRequest')
33
36
  GetProfileResponse = Shapes::StructureShape.new(name: 'GetProfileResponse')
34
37
  Integer = Shapes::IntegerShape.new(name: 'Integer')
@@ -44,6 +47,8 @@ module Aws::CodeGuruProfiler
44
47
  Period = Shapes::StringShape.new(name: 'Period')
45
48
  PostAgentProfileRequest = Shapes::StructureShape.new(name: 'PostAgentProfileRequest')
46
49
  PostAgentProfileResponse = Shapes::StructureShape.new(name: 'PostAgentProfileResponse')
50
+ Principal = Shapes::StringShape.new(name: 'Principal')
51
+ Principals = Shapes::ListShape.new(name: 'Principals')
47
52
  ProfileTime = Shapes::StructureShape.new(name: 'ProfileTime')
48
53
  ProfileTimes = Shapes::ListShape.new(name: 'ProfileTimes')
49
54
  ProfilingGroupArn = Shapes::StringShape.new(name: 'ProfilingGroupArn')
@@ -52,7 +57,12 @@ module Aws::CodeGuruProfiler
52
57
  ProfilingGroupName = Shapes::StringShape.new(name: 'ProfilingGroupName')
53
58
  ProfilingGroupNames = Shapes::ListShape.new(name: 'ProfilingGroupNames')
54
59
  ProfilingStatus = Shapes::StructureShape.new(name: 'ProfilingStatus')
60
+ PutPermissionRequest = Shapes::StructureShape.new(name: 'PutPermissionRequest')
61
+ PutPermissionResponse = Shapes::StructureShape.new(name: 'PutPermissionResponse')
62
+ RemovePermissionRequest = Shapes::StructureShape.new(name: 'RemovePermissionRequest')
63
+ RemovePermissionResponse = Shapes::StructureShape.new(name: 'RemovePermissionResponse')
55
64
  ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
65
+ RevisionId = Shapes::StringShape.new(name: 'RevisionId')
56
66
  ServiceQuotaExceededException = Shapes::StructureShape.new(name: 'ServiceQuotaExceededException')
57
67
  String = Shapes::StringShape.new(name: 'String')
58
68
  ThrottlingException = Shapes::StructureShape.new(name: 'ThrottlingException')
@@ -107,6 +117,13 @@ module Aws::CodeGuruProfiler
107
117
  DescribeProfilingGroupResponse[:payload] = :profiling_group
108
118
  DescribeProfilingGroupResponse[:payload_member] = DescribeProfilingGroupResponse.member(:profiling_group)
109
119
 
120
+ GetPolicyRequest.add_member(:profiling_group_name, Shapes::ShapeRef.new(shape: ProfilingGroupName, required: true, location: "uri", location_name: "profilingGroupName"))
121
+ GetPolicyRequest.struct_class = Types::GetPolicyRequest
122
+
123
+ GetPolicyResponse.add_member(:policy, Shapes::ShapeRef.new(shape: String, required: true, location_name: "policy"))
124
+ GetPolicyResponse.add_member(:revision_id, Shapes::ShapeRef.new(shape: RevisionId, required: true, location_name: "revisionId"))
125
+ GetPolicyResponse.struct_class = Types::GetPolicyResponse
126
+
110
127
  GetProfileRequest.add_member(:accept, Shapes::ShapeRef.new(shape: String, location: "header", location_name: "Accept"))
111
128
  GetProfileRequest.add_member(:end_time, Shapes::ShapeRef.new(shape: Timestamp, location: "querystring", location_name: "endTime"))
112
129
  GetProfileRequest.add_member(:max_depth, Shapes::ShapeRef.new(shape: MaxDepth, location: "querystring", location_name: "maxDepth"))
@@ -158,6 +175,8 @@ module Aws::CodeGuruProfiler
158
175
 
159
176
  PostAgentProfileResponse.struct_class = Types::PostAgentProfileResponse
160
177
 
178
+ Principals.member = Shapes::ShapeRef.new(shape: Principal)
179
+
161
180
  ProfileTime.add_member(:start, Shapes::ShapeRef.new(shape: Timestamp, location_name: "start"))
162
181
  ProfileTime.struct_class = Types::ProfileTime
163
182
 
@@ -180,6 +199,25 @@ module Aws::CodeGuruProfiler
180
199
  ProfilingStatus.add_member(:latest_aggregated_profile, Shapes::ShapeRef.new(shape: AggregatedProfileTime, location_name: "latestAggregatedProfile"))
181
200
  ProfilingStatus.struct_class = Types::ProfilingStatus
182
201
 
202
+ PutPermissionRequest.add_member(:action_group, Shapes::ShapeRef.new(shape: ActionGroup, required: true, location: "uri", location_name: "actionGroup"))
203
+ PutPermissionRequest.add_member(:principals, Shapes::ShapeRef.new(shape: Principals, required: true, location_name: "principals"))
204
+ PutPermissionRequest.add_member(:profiling_group_name, Shapes::ShapeRef.new(shape: ProfilingGroupName, required: true, location: "uri", location_name: "profilingGroupName"))
205
+ PutPermissionRequest.add_member(:revision_id, Shapes::ShapeRef.new(shape: RevisionId, location_name: "revisionId"))
206
+ PutPermissionRequest.struct_class = Types::PutPermissionRequest
207
+
208
+ PutPermissionResponse.add_member(:policy, Shapes::ShapeRef.new(shape: String, required: true, location_name: "policy"))
209
+ PutPermissionResponse.add_member(:revision_id, Shapes::ShapeRef.new(shape: RevisionId, required: true, location_name: "revisionId"))
210
+ PutPermissionResponse.struct_class = Types::PutPermissionResponse
211
+
212
+ RemovePermissionRequest.add_member(:action_group, Shapes::ShapeRef.new(shape: ActionGroup, required: true, location: "uri", location_name: "actionGroup"))
213
+ RemovePermissionRequest.add_member(:profiling_group_name, Shapes::ShapeRef.new(shape: ProfilingGroupName, required: true, location: "uri", location_name: "profilingGroupName"))
214
+ RemovePermissionRequest.add_member(:revision_id, Shapes::ShapeRef.new(shape: RevisionId, required: true, location: "querystring", location_name: "revisionId"))
215
+ RemovePermissionRequest.struct_class = Types::RemovePermissionRequest
216
+
217
+ RemovePermissionResponse.add_member(:policy, Shapes::ShapeRef.new(shape: String, required: true, location_name: "policy"))
218
+ RemovePermissionResponse.add_member(:revision_id, Shapes::ShapeRef.new(shape: RevisionId, required: true, location_name: "revisionId"))
219
+ RemovePermissionResponse.struct_class = Types::RemovePermissionResponse
220
+
183
221
  ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
184
222
  ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
185
223
 
@@ -268,6 +306,17 @@ module Aws::CodeGuruProfiler
268
306
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
269
307
  end)
270
308
 
309
+ api.add_operation(:get_policy, Seahorse::Model::Operation.new.tap do |o|
310
+ o.name = "GetPolicy"
311
+ o.http_method = "GET"
312
+ o.http_request_uri = "/profilingGroups/{profilingGroupName}/policy"
313
+ o.input = Shapes::ShapeRef.new(shape: GetPolicyRequest)
314
+ o.output = Shapes::ShapeRef.new(shape: GetPolicyResponse)
315
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
316
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
317
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
318
+ end)
319
+
271
320
  api.add_operation(:get_profile, Seahorse::Model::Operation.new.tap do |o|
272
321
  o.name = "GetProfile"
273
322
  o.http_method = "GET"
@@ -326,6 +375,32 @@ module Aws::CodeGuruProfiler
326
375
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
327
376
  end)
328
377
 
378
+ api.add_operation(:put_permission, Seahorse::Model::Operation.new.tap do |o|
379
+ o.name = "PutPermission"
380
+ o.http_method = "PUT"
381
+ o.http_request_uri = "/profilingGroups/{profilingGroupName}/policy/{actionGroup}"
382
+ o.input = Shapes::ShapeRef.new(shape: PutPermissionRequest)
383
+ o.output = Shapes::ShapeRef.new(shape: PutPermissionResponse)
384
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
385
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
386
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
387
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
388
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
389
+ end)
390
+
391
+ api.add_operation(:remove_permission, Seahorse::Model::Operation.new.tap do |o|
392
+ o.name = "RemovePermission"
393
+ o.http_method = "DELETE"
394
+ o.http_request_uri = "/profilingGroups/{profilingGroupName}/policy/{actionGroup}"
395
+ o.input = Shapes::ShapeRef.new(shape: RemovePermissionRequest)
396
+ o.output = Shapes::ShapeRef.new(shape: RemovePermissionResponse)
397
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
398
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
399
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
400
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
401
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
402
+ end)
403
+
329
404
  api.add_operation(:update_profiling_group, Seahorse::Model::Operation.new.tap do |o|
330
405
  o.name = "UpdateProfilingGroup"
331
406
  o.http_method = "PUT"
@@ -6,13 +6,7 @@
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
8
  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)
9
+
16
10
  class Resource
17
11
 
18
12
  # @param options ({})
@@ -221,6 +221,44 @@ module Aws::CodeGuruProfiler
221
221
  include Aws::Structure
222
222
  end
223
223
 
224
+ # The structure representing the getPolicyRequest.
225
+ #
226
+ # @note When making an API call, you may pass GetPolicyRequest
227
+ # data as a hash:
228
+ #
229
+ # {
230
+ # profiling_group_name: "ProfilingGroupName", # required
231
+ # }
232
+ #
233
+ # @!attribute [rw] profiling_group_name
234
+ # The name of the profiling group.
235
+ # @return [String]
236
+ #
237
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguruprofiler-2019-07-18/GetPolicyRequest AWS API Documentation
238
+ #
239
+ class GetPolicyRequest < Struct.new(
240
+ :profiling_group_name)
241
+ include Aws::Structure
242
+ end
243
+
244
+ # The structure representing the getPolicyResponse.
245
+ #
246
+ # @!attribute [rw] policy
247
+ # The resource-based policy attached to the `ProfilingGroup`.
248
+ # @return [String]
249
+ #
250
+ # @!attribute [rw] revision_id
251
+ # A unique identifier for the current revision of the policy.
252
+ # @return [String]
253
+ #
254
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguruprofiler-2019-07-18/GetPolicyResponse AWS API Documentation
255
+ #
256
+ class GetPolicyResponse < Struct.new(
257
+ :policy,
258
+ :revision_id)
259
+ include Aws::Structure
260
+ end
261
+
224
262
  # The structure representing the getProfileRequest.
225
263
  #
226
264
  # @note When making an API call, you may pass GetProfileRequest
@@ -605,6 +643,117 @@ module Aws::CodeGuruProfiler
605
643
  include Aws::Structure
606
644
  end
607
645
 
646
+ # The structure representing the putPermissionRequest.
647
+ #
648
+ # @note When making an API call, you may pass PutPermissionRequest
649
+ # data as a hash:
650
+ #
651
+ # {
652
+ # action_group: "agentPermissions", # required, accepts agentPermissions
653
+ # principals: ["Principal"], # required
654
+ # profiling_group_name: "ProfilingGroupName", # required
655
+ # revision_id: "RevisionId",
656
+ # }
657
+ #
658
+ # @!attribute [rw] action_group
659
+ # The list of actions that the users and roles can perform on the
660
+ # profiling group.
661
+ # @return [String]
662
+ #
663
+ # @!attribute [rw] principals
664
+ # The list of role and user ARNs or the accountId that needs access
665
+ # (wildcards are not allowed).
666
+ # @return [Array<String>]
667
+ #
668
+ # @!attribute [rw] profiling_group_name
669
+ # The name of the profiling group.
670
+ # @return [String]
671
+ #
672
+ # @!attribute [rw] revision_id
673
+ # A unique identifier for the current revision of the policy. This is
674
+ # required, if a policy exists for the profiling group. This is not
675
+ # required when creating the policy for the first time.
676
+ # @return [String]
677
+ #
678
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguruprofiler-2019-07-18/PutPermissionRequest AWS API Documentation
679
+ #
680
+ class PutPermissionRequest < Struct.new(
681
+ :action_group,
682
+ :principals,
683
+ :profiling_group_name,
684
+ :revision_id)
685
+ include Aws::Structure
686
+ end
687
+
688
+ # The structure representing the putPermissionResponse.
689
+ #
690
+ # @!attribute [rw] policy
691
+ # The resource-based policy.
692
+ # @return [String]
693
+ #
694
+ # @!attribute [rw] revision_id
695
+ # A unique identifier for the current revision of the policy.
696
+ # @return [String]
697
+ #
698
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguruprofiler-2019-07-18/PutPermissionResponse AWS API Documentation
699
+ #
700
+ class PutPermissionResponse < Struct.new(
701
+ :policy,
702
+ :revision_id)
703
+ include Aws::Structure
704
+ end
705
+
706
+ # The structure representing the removePermissionRequest.
707
+ #
708
+ # @note When making an API call, you may pass RemovePermissionRequest
709
+ # data as a hash:
710
+ #
711
+ # {
712
+ # action_group: "agentPermissions", # required, accepts agentPermissions
713
+ # profiling_group_name: "ProfilingGroupName", # required
714
+ # revision_id: "RevisionId", # required
715
+ # }
716
+ #
717
+ # @!attribute [rw] action_group
718
+ # The list of actions that the users and roles can perform on the
719
+ # profiling group.
720
+ # @return [String]
721
+ #
722
+ # @!attribute [rw] profiling_group_name
723
+ # The name of the profiling group.
724
+ # @return [String]
725
+ #
726
+ # @!attribute [rw] revision_id
727
+ # A unique identifier for the current revision of the policy.
728
+ # @return [String]
729
+ #
730
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguruprofiler-2019-07-18/RemovePermissionRequest AWS API Documentation
731
+ #
732
+ class RemovePermissionRequest < Struct.new(
733
+ :action_group,
734
+ :profiling_group_name,
735
+ :revision_id)
736
+ include Aws::Structure
737
+ end
738
+
739
+ # The structure representing the removePermissionResponse.
740
+ #
741
+ # @!attribute [rw] policy
742
+ # The resource-based policy.
743
+ # @return [String]
744
+ #
745
+ # @!attribute [rw] revision_id
746
+ # A unique identifier for the current revision of the policy.
747
+ # @return [String]
748
+ #
749
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguruprofiler-2019-07-18/RemovePermissionResponse AWS API Documentation
750
+ #
751
+ class RemovePermissionResponse < Struct.new(
752
+ :policy,
753
+ :revision_id)
754
+ include Aws::Structure
755
+ end
756
+
608
757
  # The resource specified in the request does not exist.
609
758
  #
610
759
  # @!attribute [rw] message
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.3.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-04-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -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