aws-sdk-codeguruprofiler 1.8.0 → 1.13.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
2
  SHA256:
3
- metadata.gz: ecc67e63132a4a96f589839ebf1da8ca51b435ff422fc43d9c0770902bb7857b
4
- data.tar.gz: 486364744d3a884b20893aaf7f52622eb3d948237721725287086236a4d3a9c8
3
+ metadata.gz: 989bf30ffb14f61cc57e1205f4498d793f6a4f838d50c7ffb3d9546c23109946
4
+ data.tar.gz: 5a73b43b3343c38483dbbbeb2db69cc1fea9c38c502d1545d052d02f5907cc60
5
5
  SHA512:
6
- metadata.gz: bb2939f2b4286c1e72f122bde65c763ba8e09b4606d6ad1baff7f9d67148911f41216ad6e25e74e5d74350acbc42537e67ae0d13a2a54c8b5fd81ff5b7882353
7
- data.tar.gz: fd4fb2a81d4e9257876ba5a7a740b406ac8b4369922942aefa96b25713b2d151193c7b308e6289fc9a5041a144dd42a17bfd014170606b095ef8b7fe5439f7ed
6
+ metadata.gz: 0b01e9151e7c36a2b01731926503d1cca2adaf9014b08e7176088992eab1ab7bf18f6e90b893ca6d19287aea1d0980cd27b8816ef4665d439efb6ccec5936e2f
7
+ data.tar.gz: 772afa6d20f45d0d391ef5edef4c83770db6e56cffd084116aa13d0009b0a919cc685a43b8f058a54c106a3ca84acea95ab9e575756d7879fb60ece43d898083
@@ -7,6 +7,7 @@
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
10
+
10
11
  require 'aws-sdk-core'
11
12
  require 'aws-sigv4'
12
13
 
@@ -44,9 +45,9 @@ require_relative 'aws-sdk-codeguruprofiler/customizations'
44
45
  #
45
46
  # See {Errors} for more information.
46
47
  #
47
- # @service
48
+ # @!group service
48
49
  module Aws::CodeGuruProfiler
49
50
 
50
- GEM_VERSION = '1.8.0'
51
+ GEM_VERSION = '1.13.0'
51
52
 
52
53
  end
@@ -85,13 +85,28 @@ module Aws::CodeGuruProfiler
85
85
  # * `Aws::Credentials` - Used for configuring static, non-refreshing
86
86
  # credentials.
87
87
  #
88
+ # * `Aws::SharedCredentials` - Used for loading static credentials from a
89
+ # shared file, such as `~/.aws/config`.
90
+ #
91
+ # * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
92
+ #
93
+ # * `Aws::AssumeRoleWebIdentityCredentials` - Used when you need to
94
+ # assume a role after providing credentials via the web.
95
+ #
96
+ # * `Aws::SSOCredentials` - Used for loading credentials from AWS SSO using an
97
+ # access token generated from `aws login`.
98
+ #
99
+ # * `Aws::ProcessCredentials` - Used for loading credentials from a
100
+ # process that outputs to stdout.
101
+ #
88
102
  # * `Aws::InstanceProfileCredentials` - Used for loading credentials
89
103
  # from an EC2 IMDS on an EC2 instance.
90
104
  #
91
- # * `Aws::SharedCredentials` - Used for loading credentials from a
92
- # shared file, such as `~/.aws/config`.
105
+ # * `Aws::ECSCredentials` - Used for loading credentials from
106
+ # instances running in ECS.
93
107
  #
94
- # * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
108
+ # * `Aws::CognitoIdentityCredentials` - Used for loading credentials
109
+ # from the Cognito Identity service.
95
110
  #
96
111
  # When `:credentials` are not configured directly, the following
97
112
  # locations will be searched for credentials:
@@ -101,10 +116,10 @@ module Aws::CodeGuruProfiler
101
116
  # * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
102
117
  # * `~/.aws/credentials`
103
118
  # * `~/.aws/config`
104
- # * EC2 IMDS instance profile - When used by default, the timeouts are
105
- # very aggressive. Construct and pass an instance of
106
- # `Aws::InstanceProfileCredentails` to enable retries and extended
107
- # timeouts.
119
+ # * EC2/ECS IMDS instance profile - When used by default, the timeouts
120
+ # are very aggressive. Construct and pass an instance of
121
+ # `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
122
+ # enable retries and extended timeouts.
108
123
  #
109
124
  # @option options [required, String] :region
110
125
  # The AWS region to connect to. The configured `:region` is
@@ -550,6 +565,9 @@ module Aws::CodeGuruProfiler
550
565
  # @option params [required, String] :profiling_group_name
551
566
  # The name of the profiling group to create.
552
567
  #
568
+ # @option params [Hash<String,String>] :tags
569
+ # A list of tags to add to the created profiling group.
570
+ #
553
571
  # @return [Types::CreateProfilingGroupResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
554
572
  #
555
573
  # * {Types::CreateProfilingGroupResponse#profiling_group #profiling_group} => Types::ProfilingGroupDescription
@@ -563,6 +581,9 @@ module Aws::CodeGuruProfiler
563
581
  # client_token: "ClientToken", # required
564
582
  # compute_platform: "AWSLambda", # accepts AWSLambda, Default
565
583
  # profiling_group_name: "ProfilingGroupName", # required
584
+ # tags: {
585
+ # "String" => "String",
586
+ # },
566
587
  # })
567
588
  #
568
589
  # @example Response structure
@@ -576,6 +597,8 @@ module Aws::CodeGuruProfiler
576
597
  # resp.profiling_group.profiling_status.latest_agent_profile_reported_at #=> Time
577
598
  # resp.profiling_group.profiling_status.latest_aggregated_profile.period #=> String, one of "P1D", "PT1H", "PT5M"
578
599
  # resp.profiling_group.profiling_status.latest_aggregated_profile.start #=> Time
600
+ # resp.profiling_group.tags #=> Hash
601
+ # resp.profiling_group.tags["String"] #=> String
579
602
  # resp.profiling_group.updated_at #=> Time
580
603
  #
581
604
  # @see http://docs.aws.amazon.com/goto/WebAPI/codeguruprofiler-2019-07-18/CreateProfilingGroup AWS API Documentation
@@ -640,6 +663,8 @@ module Aws::CodeGuruProfiler
640
663
  # resp.profiling_group.profiling_status.latest_agent_profile_reported_at #=> Time
641
664
  # resp.profiling_group.profiling_status.latest_aggregated_profile.period #=> String, one of "P1D", "PT1H", "PT5M"
642
665
  # resp.profiling_group.profiling_status.latest_aggregated_profile.start #=> Time
666
+ # resp.profiling_group.tags #=> Hash
667
+ # resp.profiling_group.tags["String"] #=> String
643
668
  # resp.profiling_group.updated_at #=> Time
644
669
  #
645
670
  # @see http://docs.aws.amazon.com/goto/WebAPI/codeguruprofiler-2019-07-18/DescribeProfilingGroup AWS API Documentation
@@ -1209,6 +1234,8 @@ module Aws::CodeGuruProfiler
1209
1234
  # resp.profiling_groups[0].profiling_status.latest_agent_profile_reported_at #=> Time
1210
1235
  # resp.profiling_groups[0].profiling_status.latest_aggregated_profile.period #=> String, one of "P1D", "PT1H", "PT5M"
1211
1236
  # resp.profiling_groups[0].profiling_status.latest_aggregated_profile.start #=> Time
1237
+ # resp.profiling_groups[0].tags #=> Hash
1238
+ # resp.profiling_groups[0].tags["String"] #=> String
1212
1239
  # resp.profiling_groups[0].updated_at #=> Time
1213
1240
  #
1214
1241
  # @see http://docs.aws.amazon.com/goto/WebAPI/codeguruprofiler-2019-07-18/ListProfilingGroups AWS API Documentation
@@ -1220,6 +1247,36 @@ module Aws::CodeGuruProfiler
1220
1247
  req.send_request(options)
1221
1248
  end
1222
1249
 
1250
+ # Returns a list of the tags that are assigned to a specified resource.
1251
+ #
1252
+ # @option params [required, String] :resource_arn
1253
+ # The Amazon Resource Name (ARN) of the resource that contains the tags
1254
+ # to return.
1255
+ #
1256
+ # @return [Types::ListTagsForResourceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1257
+ #
1258
+ # * {Types::ListTagsForResourceResponse#tags #tags} => Hash&lt;String,String&gt;
1259
+ #
1260
+ # @example Request syntax with placeholder values
1261
+ #
1262
+ # resp = client.list_tags_for_resource({
1263
+ # resource_arn: "ProfilingGroupArn", # required
1264
+ # })
1265
+ #
1266
+ # @example Response structure
1267
+ #
1268
+ # resp.tags #=> Hash
1269
+ # resp.tags["String"] #=> String
1270
+ #
1271
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguruprofiler-2019-07-18/ListTagsForResource AWS API Documentation
1272
+ #
1273
+ # @overload list_tags_for_resource(params = {})
1274
+ # @param [Hash] params ({})
1275
+ def list_tags_for_resource(params = {}, options = {})
1276
+ req = build_request(:list_tags_for_resource, params)
1277
+ req.send_request(options)
1278
+ end
1279
+
1223
1280
  # Submits profiling data to an aggregated profile of a profiling group.
1224
1281
  # To get an aggregated profile that is created with this profiling data,
1225
1282
  # use [ `GetProfile` ][1].
@@ -1228,7 +1285,7 @@ module Aws::CodeGuruProfiler
1228
1285
  #
1229
1286
  # [1]: https://docs.aws.amazon.com/codeguru/latest/profiler-api/API_GetProfile.html
1230
1287
  #
1231
- # @option params [required, String, IO] :agent_profile
1288
+ # @option params [required, String, StringIO, File] :agent_profile
1232
1289
  # The submitted profiling data.
1233
1290
  #
1234
1291
  # @option params [required, String] :content_type
@@ -1460,6 +1517,63 @@ module Aws::CodeGuruProfiler
1460
1517
  req.send_request(options)
1461
1518
  end
1462
1519
 
1520
+ # Use to assign one or more tags to a resource.
1521
+ #
1522
+ # @option params [required, String] :resource_arn
1523
+ # The Amazon Resource Name (ARN) of the resource that the tags are added
1524
+ # to.
1525
+ #
1526
+ # @option params [required, Hash<String,String>] :tags
1527
+ # The list of tags that are added to the specified resource.
1528
+ #
1529
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1530
+ #
1531
+ # @example Request syntax with placeholder values
1532
+ #
1533
+ # resp = client.tag_resource({
1534
+ # resource_arn: "ProfilingGroupArn", # required
1535
+ # tags: { # required
1536
+ # "String" => "String",
1537
+ # },
1538
+ # })
1539
+ #
1540
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguruprofiler-2019-07-18/TagResource AWS API Documentation
1541
+ #
1542
+ # @overload tag_resource(params = {})
1543
+ # @param [Hash] params ({})
1544
+ def tag_resource(params = {}, options = {})
1545
+ req = build_request(:tag_resource, params)
1546
+ req.send_request(options)
1547
+ end
1548
+
1549
+ # Use to remove one or more tags from a resource.
1550
+ #
1551
+ # @option params [required, String] :resource_arn
1552
+ # The Amazon Resource Name (ARN) of the resource that contains the tags
1553
+ # to remove.
1554
+ #
1555
+ # @option params [required, Array<String>] :tag_keys
1556
+ # A list of tag keys. Existing tags of resources with keys in this list
1557
+ # are removed from the specified resource.
1558
+ #
1559
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1560
+ #
1561
+ # @example Request syntax with placeholder values
1562
+ #
1563
+ # resp = client.untag_resource({
1564
+ # resource_arn: "ProfilingGroupArn", # required
1565
+ # tag_keys: ["String"], # required
1566
+ # })
1567
+ #
1568
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguruprofiler-2019-07-18/UntagResource AWS API Documentation
1569
+ #
1570
+ # @overload untag_resource(params = {})
1571
+ # @param [Hash] params ({})
1572
+ def untag_resource(params = {}, options = {})
1573
+ req = build_request(:untag_resource, params)
1574
+ req.send_request(options)
1575
+ end
1576
+
1463
1577
  # Updates a profiling group.
1464
1578
  #
1465
1579
  # @option params [required, Types::AgentOrchestrationConfig] :agent_orchestration_config
@@ -1493,6 +1607,8 @@ module Aws::CodeGuruProfiler
1493
1607
  # resp.profiling_group.profiling_status.latest_agent_profile_reported_at #=> Time
1494
1608
  # resp.profiling_group.profiling_status.latest_aggregated_profile.period #=> String, one of "P1D", "PT1H", "PT5M"
1495
1609
  # resp.profiling_group.profiling_status.latest_aggregated_profile.start #=> Time
1610
+ # resp.profiling_group.tags #=> Hash
1611
+ # resp.profiling_group.tags["String"] #=> String
1496
1612
  # resp.profiling_group.updated_at #=> Time
1497
1613
  #
1498
1614
  # @see http://docs.aws.amazon.com/goto/WebAPI/codeguruprofiler-2019-07-18/UpdateProfilingGroup AWS API Documentation
@@ -1517,7 +1633,7 @@ module Aws::CodeGuruProfiler
1517
1633
  params: params,
1518
1634
  config: config)
1519
1635
  context[:gem_name] = 'aws-sdk-codeguruprofiler'
1520
- context[:gem_version] = '1.8.0'
1636
+ context[:gem_version] = '1.13.0'
1521
1637
  Seahorse::Client::Request.new(handlers, context)
1522
1638
  end
1523
1639
 
@@ -79,6 +79,8 @@ module Aws::CodeGuruProfiler
79
79
  ListProfileTimesResponse = Shapes::StructureShape.new(name: 'ListProfileTimesResponse')
80
80
  ListProfilingGroupsRequest = Shapes::StructureShape.new(name: 'ListProfilingGroupsRequest')
81
81
  ListProfilingGroupsResponse = Shapes::StructureShape.new(name: 'ListProfilingGroupsResponse')
82
+ ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
83
+ ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
82
84
  Locale = Shapes::StringShape.new(name: 'Locale')
83
85
  Match = Shapes::StructureShape.new(name: 'Match')
84
86
  Matches = Shapes::ListShape.new(name: 'Matches')
@@ -121,6 +123,10 @@ module Aws::CodeGuruProfiler
121
123
  Strings = Shapes::ListShape.new(name: 'Strings')
122
124
  SubmitFeedbackRequest = Shapes::StructureShape.new(name: 'SubmitFeedbackRequest')
123
125
  SubmitFeedbackResponse = Shapes::StructureShape.new(name: 'SubmitFeedbackResponse')
126
+ TagKeys = Shapes::ListShape.new(name: 'TagKeys')
127
+ TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest')
128
+ TagResourceResponse = Shapes::StructureShape.new(name: 'TagResourceResponse')
129
+ TagsMap = Shapes::MapShape.new(name: 'TagsMap')
124
130
  TargetFrame = Shapes::ListShape.new(name: 'TargetFrame')
125
131
  TargetFrames = Shapes::ListShape.new(name: 'TargetFrames')
126
132
  ThreadStates = Shapes::ListShape.new(name: 'ThreadStates')
@@ -128,6 +134,8 @@ module Aws::CodeGuruProfiler
128
134
  Timestamp = Shapes::TimestampShape.new(name: 'Timestamp', timestampFormat: "iso8601")
129
135
  TimestampStructure = Shapes::StructureShape.new(name: 'TimestampStructure')
130
136
  UnprocessedEndTimeMap = Shapes::MapShape.new(name: 'UnprocessedEndTimeMap')
137
+ UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
138
+ UntagResourceResponse = Shapes::StructureShape.new(name: 'UntagResourceResponse')
131
139
  UpdateProfilingGroupRequest = Shapes::StructureShape.new(name: 'UpdateProfilingGroupRequest')
132
140
  UpdateProfilingGroupResponse = Shapes::StructureShape.new(name: 'UpdateProfilingGroupResponse')
133
141
  UserFeedback = Shapes::StructureShape.new(name: 'UserFeedback')
@@ -210,6 +218,7 @@ module Aws::CodeGuruProfiler
210
218
  CreateProfilingGroupRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientToken, required: true, location: "querystring", location_name: "clientToken", metadata: {"idempotencyToken"=>true}))
211
219
  CreateProfilingGroupRequest.add_member(:compute_platform, Shapes::ShapeRef.new(shape: ComputePlatform, location_name: "computePlatform"))
212
220
  CreateProfilingGroupRequest.add_member(:profiling_group_name, Shapes::ShapeRef.new(shape: ProfilingGroupName, required: true, location_name: "profilingGroupName"))
221
+ CreateProfilingGroupRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagsMap, location_name: "tags"))
213
222
  CreateProfilingGroupRequest.struct_class = Types::CreateProfilingGroupRequest
214
223
 
215
224
  CreateProfilingGroupResponse.add_member(:profiling_group, Shapes::ShapeRef.new(shape: ProfilingGroupDescription, required: true, location_name: "profilingGroup"))
@@ -346,6 +355,12 @@ module Aws::CodeGuruProfiler
346
355
  ListProfilingGroupsResponse.add_member(:profiling_groups, Shapes::ShapeRef.new(shape: ProfilingGroupDescriptions, location_name: "profilingGroups"))
347
356
  ListProfilingGroupsResponse.struct_class = Types::ListProfilingGroupsResponse
348
357
 
358
+ ListTagsForResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ProfilingGroupArn, required: true, location: "uri", location_name: "resourceArn"))
359
+ ListTagsForResourceRequest.struct_class = Types::ListTagsForResourceRequest
360
+
361
+ ListTagsForResourceResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagsMap, location_name: "tags"))
362
+ ListTagsForResourceResponse.struct_class = Types::ListTagsForResourceResponse
363
+
349
364
  Match.add_member(:frame_address, Shapes::ShapeRef.new(shape: String, location_name: "frameAddress"))
350
365
  Match.add_member(:target_frames_index, Shapes::ShapeRef.new(shape: Integer, location_name: "targetFramesIndex"))
351
366
  Match.add_member(:threshold_breach_value, Shapes::ShapeRef.new(shape: Double, location_name: "thresholdBreachValue"))
@@ -396,6 +411,7 @@ module Aws::CodeGuruProfiler
396
411
  ProfilingGroupDescription.add_member(:created_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "createdAt"))
397
412
  ProfilingGroupDescription.add_member(:name, Shapes::ShapeRef.new(shape: ProfilingGroupName, location_name: "name"))
398
413
  ProfilingGroupDescription.add_member(:profiling_status, Shapes::ShapeRef.new(shape: ProfilingStatus, location_name: "profilingStatus"))
414
+ ProfilingGroupDescription.add_member(:tags, Shapes::ShapeRef.new(shape: TagsMap, location_name: "tags"))
399
415
  ProfilingGroupDescription.add_member(:updated_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "updatedAt"))
400
416
  ProfilingGroupDescription.struct_class = Types::ProfilingGroupDescription
401
417
 
@@ -460,6 +476,17 @@ module Aws::CodeGuruProfiler
460
476
 
461
477
  SubmitFeedbackResponse.struct_class = Types::SubmitFeedbackResponse
462
478
 
479
+ TagKeys.member = Shapes::ShapeRef.new(shape: String)
480
+
481
+ TagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ProfilingGroupArn, required: true, location: "uri", location_name: "resourceArn"))
482
+ TagResourceRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagsMap, required: true, location_name: "tags"))
483
+ TagResourceRequest.struct_class = Types::TagResourceRequest
484
+
485
+ TagResourceResponse.struct_class = Types::TagResourceResponse
486
+
487
+ TagsMap.key = Shapes::ShapeRef.new(shape: String)
488
+ TagsMap.value = Shapes::ShapeRef.new(shape: String)
489
+
463
490
  TargetFrame.member = Shapes::ShapeRef.new(shape: String)
464
491
 
465
492
  TargetFrames.member = Shapes::ShapeRef.new(shape: TargetFrame)
@@ -475,6 +502,12 @@ module Aws::CodeGuruProfiler
475
502
  UnprocessedEndTimeMap.key = Shapes::ShapeRef.new(shape: String)
476
503
  UnprocessedEndTimeMap.value = Shapes::ShapeRef.new(shape: ListOfTimestamps)
477
504
 
505
+ UntagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ProfilingGroupArn, required: true, location: "uri", location_name: "resourceArn"))
506
+ UntagResourceRequest.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeys, required: true, location: "querystring", location_name: "tagKeys"))
507
+ UntagResourceRequest.struct_class = Types::UntagResourceRequest
508
+
509
+ UntagResourceResponse.struct_class = Types::UntagResourceResponse
510
+
478
511
  UpdateProfilingGroupRequest.add_member(:agent_orchestration_config, Shapes::ShapeRef.new(shape: AgentOrchestrationConfig, required: true, location_name: "agentOrchestrationConfig"))
479
512
  UpdateProfilingGroupRequest.add_member(:profiling_group_name, Shapes::ShapeRef.new(shape: ProfilingGroupName, required: true, location: "uri", location_name: "profilingGroupName"))
480
513
  UpdateProfilingGroupRequest.struct_class = Types::UpdateProfilingGroupRequest
@@ -699,6 +732,17 @@ module Aws::CodeGuruProfiler
699
732
  )
700
733
  end)
701
734
 
735
+ api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
736
+ o.name = "ListTagsForResource"
737
+ o.http_method = "GET"
738
+ o.http_request_uri = "/tags/{resourceArn}"
739
+ o.input = Shapes::ShapeRef.new(shape: ListTagsForResourceRequest)
740
+ o.output = Shapes::ShapeRef.new(shape: ListTagsForResourceResponse)
741
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
742
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
743
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
744
+ end)
745
+
702
746
  api.add_operation(:post_agent_profile, Seahorse::Model::Operation.new.tap do |o|
703
747
  o.name = "PostAgentProfile"
704
748
  o.http_method = "POST"
@@ -761,6 +805,28 @@ module Aws::CodeGuruProfiler
761
805
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
762
806
  end)
763
807
 
808
+ api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
809
+ o.name = "TagResource"
810
+ o.http_method = "POST"
811
+ o.http_request_uri = "/tags/{resourceArn}"
812
+ o.input = Shapes::ShapeRef.new(shape: TagResourceRequest)
813
+ o.output = Shapes::ShapeRef.new(shape: TagResourceResponse)
814
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
815
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
816
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
817
+ end)
818
+
819
+ api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
820
+ o.name = "UntagResource"
821
+ o.http_method = "DELETE"
822
+ o.http_request_uri = "/tags/{resourceArn}"
823
+ o.input = Shapes::ShapeRef.new(shape: UntagResourceRequest)
824
+ o.output = Shapes::ShapeRef.new(shape: UntagResourceResponse)
825
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
826
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
827
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
828
+ end)
829
+
764
830
  api.add_operation(:update_profiling_group, Seahorse::Model::Operation.new.tap do |o|
765
831
  o.name = "UpdateProfilingGroup"
766
832
  o.http_method = "PUT"
@@ -537,6 +537,9 @@ module Aws::CodeGuruProfiler
537
537
  # client_token: "ClientToken", # required
538
538
  # compute_platform: "AWSLambda", # accepts AWSLambda, Default
539
539
  # profiling_group_name: "ProfilingGroupName", # required
540
+ # tags: {
541
+ # "String" => "String",
542
+ # },
540
543
  # }
541
544
  #
542
545
  # @!attribute [rw] agent_orchestration_config
@@ -565,13 +568,18 @@ module Aws::CodeGuruProfiler
565
568
  # The name of the profiling group to create.
566
569
  # @return [String]
567
570
  #
571
+ # @!attribute [rw] tags
572
+ # A list of tags to add to the created profiling group.
573
+ # @return [Hash<String,String>]
574
+ #
568
575
  # @see http://docs.aws.amazon.com/goto/WebAPI/codeguruprofiler-2019-07-18/CreateProfilingGroupRequest AWS API Documentation
569
576
  #
570
577
  class CreateProfilingGroupRequest < Struct.new(
571
578
  :agent_orchestration_config,
572
579
  :client_token,
573
580
  :compute_platform,
574
- :profiling_group_name)
581
+ :profiling_group_name,
582
+ :tags)
575
583
  SENSITIVE = []
576
584
  include Aws::Structure
577
585
  end
@@ -1446,6 +1454,39 @@ module Aws::CodeGuruProfiler
1446
1454
  include Aws::Structure
1447
1455
  end
1448
1456
 
1457
+ # @note When making an API call, you may pass ListTagsForResourceRequest
1458
+ # data as a hash:
1459
+ #
1460
+ # {
1461
+ # resource_arn: "ProfilingGroupArn", # required
1462
+ # }
1463
+ #
1464
+ # @!attribute [rw] resource_arn
1465
+ # The Amazon Resource Name (ARN) of the resource that contains the
1466
+ # tags to return.
1467
+ # @return [String]
1468
+ #
1469
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguruprofiler-2019-07-18/ListTagsForResourceRequest AWS API Documentation
1470
+ #
1471
+ class ListTagsForResourceRequest < Struct.new(
1472
+ :resource_arn)
1473
+ SENSITIVE = []
1474
+ include Aws::Structure
1475
+ end
1476
+
1477
+ # @!attribute [rw] tags
1478
+ # The list of tags assigned to the specified resource. This is the
1479
+ # list of tags returned in the response.
1480
+ # @return [Hash<String,String>]
1481
+ #
1482
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguruprofiler-2019-07-18/ListTagsForResourceResponse AWS API Documentation
1483
+ #
1484
+ class ListTagsForResourceResponse < Struct.new(
1485
+ :tags)
1486
+ SENSITIVE = []
1487
+ include Aws::Structure
1488
+ end
1489
+
1449
1490
  # The part of a profile that contains a recommendation found during
1450
1491
  # analysis.
1451
1492
  #
@@ -1689,6 +1730,10 @@ module Aws::CodeGuruProfiler
1689
1730
  # [1]: https://docs.aws.amazon.com/codeguru/latest/profiler-api/API_ProfilingStatus.html
1690
1731
  # @return [Types::ProfilingStatus]
1691
1732
  #
1733
+ # @!attribute [rw] tags
1734
+ # A list of the tags that belong to this profiling group.
1735
+ # @return [Hash<String,String>]
1736
+ #
1692
1737
  # @!attribute [rw] updated_at
1693
1738
  # The date and time when the profiling group was last updated. Specify
1694
1739
  # using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z
@@ -1704,6 +1749,7 @@ module Aws::CodeGuruProfiler
1704
1749
  :created_at,
1705
1750
  :name,
1706
1751
  :profiling_status,
1752
+ :tags,
1707
1753
  :updated_at)
1708
1754
  SENSITIVE = []
1709
1755
  include Aws::Structure
@@ -2050,6 +2096,38 @@ module Aws::CodeGuruProfiler
2050
2096
  #
2051
2097
  class SubmitFeedbackResponse < Aws::EmptyStructure; end
2052
2098
 
2099
+ # @note When making an API call, you may pass TagResourceRequest
2100
+ # data as a hash:
2101
+ #
2102
+ # {
2103
+ # resource_arn: "ProfilingGroupArn", # required
2104
+ # tags: { # required
2105
+ # "String" => "String",
2106
+ # },
2107
+ # }
2108
+ #
2109
+ # @!attribute [rw] resource_arn
2110
+ # The Amazon Resource Name (ARN) of the resource that the tags are
2111
+ # added to.
2112
+ # @return [String]
2113
+ #
2114
+ # @!attribute [rw] tags
2115
+ # The list of tags that are added to the specified resource.
2116
+ # @return [Hash<String,String>]
2117
+ #
2118
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguruprofiler-2019-07-18/TagResourceRequest AWS API Documentation
2119
+ #
2120
+ class TagResourceRequest < Struct.new(
2121
+ :resource_arn,
2122
+ :tags)
2123
+ SENSITIVE = []
2124
+ include Aws::Structure
2125
+ end
2126
+
2127
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguruprofiler-2019-07-18/TagResourceResponse AWS API Documentation
2128
+ #
2129
+ class TagResourceResponse < Aws::EmptyStructure; end
2130
+
2053
2131
  # The request was denied due to request throttling.
2054
2132
  #
2055
2133
  # @!attribute [rw] message
@@ -2081,6 +2159,37 @@ module Aws::CodeGuruProfiler
2081
2159
  include Aws::Structure
2082
2160
  end
2083
2161
 
2162
+ # @note When making an API call, you may pass UntagResourceRequest
2163
+ # data as a hash:
2164
+ #
2165
+ # {
2166
+ # resource_arn: "ProfilingGroupArn", # required
2167
+ # tag_keys: ["String"], # required
2168
+ # }
2169
+ #
2170
+ # @!attribute [rw] resource_arn
2171
+ # The Amazon Resource Name (ARN) of the resource that contains the
2172
+ # tags to remove.
2173
+ # @return [String]
2174
+ #
2175
+ # @!attribute [rw] tag_keys
2176
+ # A list of tag keys. Existing tags of resources with keys in this
2177
+ # list are removed from the specified resource.
2178
+ # @return [Array<String>]
2179
+ #
2180
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguruprofiler-2019-07-18/UntagResourceRequest AWS API Documentation
2181
+ #
2182
+ class UntagResourceRequest < Struct.new(
2183
+ :resource_arn,
2184
+ :tag_keys)
2185
+ SENSITIVE = []
2186
+ include Aws::Structure
2187
+ end
2188
+
2189
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguruprofiler-2019-07-18/UntagResourceResponse AWS API Documentation
2190
+ #
2191
+ class UntagResourceResponse < Aws::EmptyStructure; end
2192
+
2084
2193
  # The structure representing the updateProfilingGroupRequest.
2085
2194
  #
2086
2195
  # @note When making an API call, you may pass UpdateProfilingGroupRequest
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.8.0
4
+ version: 1.13.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-06-29 00:00:00.000000000 Z
11
+ date: 2021-02-02 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.99.0
22
+ version: 3.112.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.99.0
32
+ version: 3.112.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement