aws-sdk-codegurureviewer 1.22.0 → 1.23.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: 4f85f511473066d7577018a59a6d274949dd23893692b457ab347feee8d0cfaa
4
- data.tar.gz: c9b1c266860ba46b74ddd04ef63cdd3712bb9a93240a85c4c874bc2b8e5e6c42
3
+ metadata.gz: 11c63911248e37618006ef700345b42703fd138670284e9216496d57f111887e
4
+ data.tar.gz: a0025942cd6d01d99ea74322a036ac4794635a756a3d0effe8be25efb584807e
5
5
  SHA512:
6
- metadata.gz: 62c6cb37128ca437fe4c1cc3761009a013fd52fa67b40e8189a9c33230a7d267dafe8b1aae66f1b4ca5eb9a454d5fd48da8e388e7d7ee18e76f4b530f0c61fd3
7
- data.tar.gz: e160dc7ac75eeed2b1773a05c5b0978cb018f7453d29241e640f29d2f0c2445f6c5fe9433a1be630edb2575def9a26a4cdae4accfb643b0e2438a9f04c11ae27
6
+ metadata.gz: 884090aaa95a77eb84b2a6ecba90cfe4618fdd8c994d8355d9a7c3fd174889a4ecd4f3f066cdcd1452d392ec54f66581745588ed212a8057cbe237c3e9ec6a35
7
+ data.tar.gz: b5d89f695604fa1fc28422a7037444e71a87490d6a0220229bf1131bd14e907269d25377bc81a52c8f088c36c0b2aa039c07165cbb1836d74fc7616934cd346d
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.23.0 (2021-09-09)
5
+ ------------------
6
+
7
+ * Feature - The Amazon CodeGuru Reviewer API now includes the RuleMetadata data object and a Severity attribute on a RecommendationSummary object. A RuleMetadata object contains information about a rule that generates a recommendation. Severity indicates how severe the issue associated with a recommendation is.
8
+
4
9
  1.22.0 (2021-09-03)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.22.0
1
+ 1.23.0
@@ -327,29 +327,30 @@ module Aws::CodeGuruReviewer
327
327
 
328
328
  # @!group API Operations
329
329
 
330
- # Use to associate an AWS CodeCommit repository or a repostory managed
331
- # by AWS CodeStar Connections with Amazon CodeGuru Reviewer. When you
332
- # associate a repository, CodeGuru Reviewer reviews source code changes
333
- # in the repository's pull requests and provides automatic
334
- # recommendations. You can view recommendations using the CodeGuru
335
- # Reviewer console. For more information, see [Recommendations in Amazon
336
- # CodeGuru Reviewer][1] in the *Amazon CodeGuru Reviewer User Guide.*
330
+ # Use to associate an Amazon Web Services CodeCommit repository or a
331
+ # repostory managed by Amazon Web Services CodeStar Connections with
332
+ # Amazon CodeGuru Reviewer. When you associate a repository, CodeGuru
333
+ # Reviewer reviews source code changes in the repository's pull
334
+ # requests and provides automatic recommendations. You can view
335
+ # recommendations using the CodeGuru Reviewer console. For more
336
+ # information, see [Recommendations in Amazon CodeGuru Reviewer][1] in
337
+ # the *Amazon CodeGuru Reviewer User Guide.*
337
338
  #
338
339
  # If you associate a CodeCommit or S3 repository, it must be in the same
339
- # AWS Region and AWS account where its CodeGuru Reviewer code reviews
340
- # are configured.
341
- #
342
- # Bitbucket and GitHub Enterprise Server repositories are managed by AWS
343
- # CodeStar Connections to connect to CodeGuru Reviewer. For more
344
- # information, see [Associate a repository][2] in the *Amazon CodeGuru
340
+ # Amazon Web Services Region and Amazon Web Services account where its
341
+ # CodeGuru Reviewer code reviews are configured.
342
+ #
343
+ # Bitbucket and GitHub Enterprise Server repositories are managed by
344
+ # Amazon Web Services CodeStar Connections to connect to CodeGuru
345
+ # Reviewer. For more information, see [Associate a repository][2] in the
346
+ # *Amazon CodeGuru Reviewer User Guide.*
347
+ #
348
+ # <note markdown="1"> You cannot use the CodeGuru Reviewer SDK or the Amazon Web Services
349
+ # CLI to associate a GitHub repository with Amazon CodeGuru Reviewer. To
350
+ # associate a GitHub repository, use the console. For more information,
351
+ # see [Getting started with CodeGuru Reviewer][3] in the *CodeGuru
345
352
  # Reviewer User Guide.*
346
353
  #
347
- # <note markdown="1"> You cannot use the CodeGuru Reviewer SDK or the AWS CLI to associate a
348
- # GitHub repository with Amazon CodeGuru Reviewer. To associate a GitHub
349
- # repository, use the console. For more information, see [Getting
350
- # started with CodeGuru Reviewer][3] in the *CodeGuru Reviewer User
351
- # Guide.*
352
- #
353
354
  # </note>
354
355
  #
355
356
  #
@@ -385,11 +386,11 @@ module Aws::CodeGuruReviewer
385
386
  # A `KMSKeyDetails` object that contains:
386
387
  #
387
388
  # * The encryption option for this repository association. It is either
388
- # owned by AWS Key Management Service (KMS) (`AWS_OWNED_CMK`) or
389
- # customer managed (`CUSTOMER_MANAGED_CMK`).
389
+ # owned by Amazon Web Services Key Management Service (KMS)
390
+ # (`AWS_OWNED_CMK`) or customer managed (`CUSTOMER_MANAGED_CMK`).
390
391
  #
391
- # * The ID of the AWS KMS key that is associated with this respository
392
- # association.
392
+ # * The ID of the Amazon Web Services KMS key that is associated with
393
+ # this respository association.
393
394
  #
394
395
  # @return [Types::AssociateRepositoryResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
395
396
  #
@@ -467,8 +468,8 @@ module Aws::CodeGuruReviewer
467
468
  # [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReviewType.html
468
469
  #
469
470
  # @option params [required, String] :name
470
- # The name of the code review. The name of each code review in your AWS
471
- # account must be unique.
471
+ # The name of the code review. The name of each code review in your
472
+ # Amazon Web Services account must be unique.
472
473
  #
473
474
  # @option params [required, String] :repository_association_arn
474
475
  # The Amazon Resource Name (ARN) of the [ `RepositoryAssociation` ][1]
@@ -681,10 +682,10 @@ module Aws::CodeGuruReviewer
681
682
  # Optional parameter to describe the feedback for a given user. If this
682
683
  # is not supplied, it defaults to the user making the request.
683
684
  #
684
- # The `UserId` is an IAM principal that can be specified as an AWS
685
- # account ID or an Amazon Resource Name (ARN). For more information, see
686
- # [ Specifying a Principal][1] in the *AWS Identity and Access
687
- # Management User Guide*.
685
+ # The `UserId` is an IAM principal that can be specified as an Amazon
686
+ # Web Services account ID or an Amazon Resource Name (ARN). For more
687
+ # information, see [ Specifying a Principal][1] in the *Amazon Web
688
+ # Services Identity and Access Management User Guide*.
688
689
  #
689
690
  #
690
691
  #
@@ -961,13 +962,14 @@ module Aws::CodeGuruReviewer
961
962
  # [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html
962
963
  #
963
964
  # @option params [Array<String>] :user_ids
964
- # An AWS user's account ID or Amazon Resource Name (ARN). Use this ID
965
- # to query the recommendation feedback for a code review from that user.
965
+ # An Amazon Web Services user's account ID or Amazon Resource Name
966
+ # (ARN). Use this ID to query the recommendation feedback for a code
967
+ # review from that user.
966
968
  #
967
- # The `UserId` is an IAM principal that can be specified as an AWS
968
- # account ID or an Amazon Resource Name (ARN). For more information, see
969
- # [ Specifying a Principal][1] in the *AWS Identity and Access
970
- # Management User Guide*.
969
+ # The `UserId` is an IAM principal that can be specified as an Amazon
970
+ # Web Services account ID or an Amazon Resource Name (ARN). For more
971
+ # information, see [ Specifying a Principal][1] in the *Amazon Web
972
+ # Services Identity and Access Management User Guide*.
971
973
  #
972
974
  #
973
975
  #
@@ -1051,6 +1053,13 @@ module Aws::CodeGuruReviewer
1051
1053
  # resp.recommendation_summaries[0].end_line #=> Integer
1052
1054
  # resp.recommendation_summaries[0].description #=> String
1053
1055
  # resp.recommendation_summaries[0].recommendation_category #=> String, one of "AWSBestPractices", "AWSCloudFormationIssues", "DuplicateCode", "CodeMaintenanceIssues", "ConcurrencyIssues", "InputValidations", "PythonBestPractices", "JavaBestPractices", "ResourceLeaks", "SecurityIssues", "CodeInconsistencies"
1056
+ # resp.recommendation_summaries[0].rule_metadata.rule_id #=> String
1057
+ # resp.recommendation_summaries[0].rule_metadata.rule_name #=> String
1058
+ # resp.recommendation_summaries[0].rule_metadata.short_description #=> String
1059
+ # resp.recommendation_summaries[0].rule_metadata.long_description #=> String
1060
+ # resp.recommendation_summaries[0].rule_metadata.rule_tags #=> Array
1061
+ # resp.recommendation_summaries[0].rule_metadata.rule_tags[0] #=> String
1062
+ # resp.recommendation_summaries[0].severity #=> String, one of "Info", "Low", "Medium", "High", "Critical"
1054
1063
  # resp.next_token #=> String
1055
1064
  #
1056
1065
  # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/ListRecommendations AWS API Documentation
@@ -1122,11 +1131,11 @@ module Aws::CodeGuruReviewer
1122
1131
  # List of repository names to use as a filter.
1123
1132
  #
1124
1133
  # @option params [Array<String>] :owners
1125
- # List of owners to use as a filter. For AWS CodeCommit, it is the name
1126
- # of the CodeCommit account that was used to associate the repository.
1127
- # For other repository source providers, such as Bitbucket and GitHub
1128
- # Enterprise Server, this is name of the account that was used to
1129
- # associate the repository.
1134
+ # List of owners to use as a filter. For Amazon Web Services CodeCommit,
1135
+ # it is the name of the CodeCommit account that was used to associate
1136
+ # the repository. For other repository source providers, such as
1137
+ # Bitbucket and GitHub Enterprise Server, this is name of the account
1138
+ # that was used to associate the repository.
1130
1139
  #
1131
1140
  # @option params [Integer] :max_results
1132
1141
  # The maximum number of repository association results returned by
@@ -1357,7 +1366,7 @@ module Aws::CodeGuruReviewer
1357
1366
  params: params,
1358
1367
  config: config)
1359
1368
  context[:gem_name] = 'aws-sdk-codegurureviewer'
1360
- context[:gem_version] = '1.22.0'
1369
+ context[:gem_version] = '1.23.0'
1361
1370
  Seahorse::Client::Request.new(handlers, context)
1362
1371
  end
1363
1372
 
@@ -70,6 +70,7 @@ module Aws::CodeGuruReviewer
70
70
  ListRepositoryAssociationsResponse = Shapes::StructureShape.new(name: 'ListRepositoryAssociationsResponse')
71
71
  ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
72
72
  ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
73
+ LongDescription = Shapes::StringShape.new(name: 'LongDescription')
73
74
  MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
74
75
  MeteredLinesOfCodeCount = Shapes::IntegerShape.new(name: 'MeteredLinesOfCodeCount')
75
76
  Metrics = Shapes::StructureShape.new(name: 'Metrics')
@@ -108,10 +109,17 @@ module Aws::CodeGuruReviewer
108
109
  RequestMetadata = Shapes::StructureShape.new(name: 'RequestMetadata')
109
110
  Requester = Shapes::StringShape.new(name: 'Requester')
110
111
  ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
112
+ RuleId = Shapes::StringShape.new(name: 'RuleId')
113
+ RuleMetadata = Shapes::StructureShape.new(name: 'RuleMetadata')
114
+ RuleName = Shapes::StringShape.new(name: 'RuleName')
115
+ RuleTag = Shapes::StringShape.new(name: 'RuleTag')
116
+ RuleTags = Shapes::ListShape.new(name: 'RuleTags')
111
117
  S3BucketName = Shapes::StringShape.new(name: 'S3BucketName')
112
118
  S3BucketRepository = Shapes::StructureShape.new(name: 'S3BucketRepository')
113
119
  S3Repository = Shapes::StructureShape.new(name: 'S3Repository')
114
120
  S3RepositoryDetails = Shapes::StructureShape.new(name: 'S3RepositoryDetails')
121
+ Severity = Shapes::StringShape.new(name: 'Severity')
122
+ ShortDescription = Shapes::StringShape.new(name: 'ShortDescription')
115
123
  SourceCodeArtifactsObjectKey = Shapes::StringShape.new(name: 'SourceCodeArtifactsObjectKey')
116
124
  SourceCodeType = Shapes::StructureShape.new(name: 'SourceCodeType')
117
125
  StateReason = Shapes::StringShape.new(name: 'StateReason')
@@ -355,6 +363,8 @@ module Aws::CodeGuruReviewer
355
363
  RecommendationSummary.add_member(:end_line, Shapes::ShapeRef.new(shape: LineNumber, location_name: "EndLine"))
356
364
  RecommendationSummary.add_member(:description, Shapes::ShapeRef.new(shape: Text, location_name: "Description"))
357
365
  RecommendationSummary.add_member(:recommendation_category, Shapes::ShapeRef.new(shape: RecommendationCategory, location_name: "RecommendationCategory"))
366
+ RecommendationSummary.add_member(:rule_metadata, Shapes::ShapeRef.new(shape: RuleMetadata, location_name: "RuleMetadata"))
367
+ RecommendationSummary.add_member(:severity, Shapes::ShapeRef.new(shape: Severity, location_name: "Severity"))
358
368
  RecommendationSummary.struct_class = Types::RecommendationSummary
359
369
 
360
370
  Repository.add_member(:code_commit, Shapes::ShapeRef.new(shape: CodeCommitRepository, location_name: "CodeCommit"))
@@ -409,6 +419,15 @@ module Aws::CodeGuruReviewer
409
419
  ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
410
420
  ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
411
421
 
422
+ RuleMetadata.add_member(:rule_id, Shapes::ShapeRef.new(shape: RuleId, location_name: "RuleId"))
423
+ RuleMetadata.add_member(:rule_name, Shapes::ShapeRef.new(shape: RuleName, location_name: "RuleName"))
424
+ RuleMetadata.add_member(:short_description, Shapes::ShapeRef.new(shape: ShortDescription, location_name: "ShortDescription"))
425
+ RuleMetadata.add_member(:long_description, Shapes::ShapeRef.new(shape: LongDescription, location_name: "LongDescription"))
426
+ RuleMetadata.add_member(:rule_tags, Shapes::ShapeRef.new(shape: RuleTags, location_name: "RuleTags"))
427
+ RuleMetadata.struct_class = Types::RuleMetadata
428
+
429
+ RuleTags.member = Shapes::ShapeRef.new(shape: RuleTag)
430
+
412
431
  S3BucketRepository.add_member(:name, Shapes::ShapeRef.new(shape: Name, required: true, location_name: "Name"))
413
432
  S3BucketRepository.add_member(:details, Shapes::ShapeRef.new(shape: S3RepositoryDetails, location_name: "Details"))
414
433
  S3BucketRepository.struct_class = Types::S3BucketRepository
@@ -86,11 +86,11 @@ module Aws::CodeGuruReviewer
86
86
  # A `KMSKeyDetails` object that contains:
87
87
  #
88
88
  # * The encryption option for this repository association. It is
89
- # either owned by AWS Key Management Service (KMS) (`AWS_OWNED_CMK`)
90
- # or customer managed (`CUSTOMER_MANAGED_CMK`).
89
+ # either owned by Amazon Web Services Key Management Service (KMS)
90
+ # (`AWS_OWNED_CMK`) or customer managed (`CUSTOMER_MANAGED_CMK`).
91
91
  #
92
- # * The ID of the AWS KMS key that is associated with this respository
93
- # association.
92
+ # * The ID of the Amazon Web Services KMS key that is associated with
93
+ # this respository association.
94
94
  # @return [Types::KMSKeyDetails]
95
95
  #
96
96
  # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/AssociateRepositoryRequest AWS API Documentation
@@ -204,9 +204,10 @@ module Aws::CodeGuruReviewer
204
204
  include Aws::Structure
205
205
  end
206
206
 
207
- # Information about an AWS CodeCommit repository. The CodeCommit
208
- # repository must be in the same AWS Region and AWS account where its
209
- # CodeGuru Reviewer code reviews are configured.
207
+ # Information about an Amazon Web Services CodeCommit repository. The
208
+ # CodeCommit repository must be in the same Amazon Web Services Region
209
+ # and Amazon Web Services account where its CodeGuru Reviewer code
210
+ # reviews are configured.
210
211
  #
211
212
  # @note When making an API call, you may pass CodeCommitRepository
212
213
  # data as a hash:
@@ -216,8 +217,9 @@ module Aws::CodeGuruReviewer
216
217
  # }
217
218
  #
218
219
  # @!attribute [rw] name
219
- # The name of the AWS CodeCommit repository. For more information, see
220
- # [repositoryName][1] in the *AWS CodeCommit API Reference*.
220
+ # The name of the Amazon Web Services CodeCommit repository. For more
221
+ # information, see [repositoryName][1] in the *Amazon Web Services
222
+ # CodeCommit API Reference*.
221
223
  #
222
224
  #
223
225
  #
@@ -252,11 +254,12 @@ module Aws::CodeGuruReviewer
252
254
  # @return [String]
253
255
  #
254
256
  # @!attribute [rw] owner
255
- # The owner of the repository. For an AWS CodeCommit repository, this
256
- # is the AWS account ID of the account that owns the repository. For a
257
- # GitHub, GitHub Enterprise Server, or Bitbucket repository, this is
258
- # the username for the account that owns the repository. For an S3
259
- # repository, it can be the username or AWS account ID.
257
+ # The owner of the repository. For an Amazon Web Services CodeCommit
258
+ # repository, this is the Amazon Web Services account ID of the
259
+ # account that owns the repository. For a GitHub, GitHub Enterprise
260
+ # Server, or Bitbucket repository, this is the username for the
261
+ # account that owns the repository. For an S3 repository, it can be
262
+ # the username or Amazon Web Services account ID.
260
263
  # @return [String]
261
264
  #
262
265
  # @!attribute [rw] provider_type
@@ -365,11 +368,12 @@ module Aws::CodeGuruReviewer
365
368
  # @return [String]
366
369
  #
367
370
  # @!attribute [rw] owner
368
- # The owner of the repository. For an AWS CodeCommit repository, this
369
- # is the AWS account ID of the account that owns the repository. For a
370
- # GitHub, GitHub Enterprise Server, or Bitbucket repository, this is
371
- # the username for the account that owns the repository. For an S3
372
- # repository, it can be the username or AWS account ID.
371
+ # The owner of the repository. For an Amazon Web Services CodeCommit
372
+ # repository, this is the Amazon Web Services account ID of the
373
+ # account that owns the repository. For a GitHub, GitHub Enterprise
374
+ # Server, or Bitbucket repository, this is the username for the
375
+ # account that owns the repository. For an S3 repository, it can be
376
+ # the username or Amazon Web Services account ID.
373
377
  # @return [String]
374
378
  #
375
379
  # @!attribute [rw] provider_type
@@ -628,7 +632,7 @@ module Aws::CodeGuruReviewer
628
632
  #
629
633
  # @!attribute [rw] name
630
634
  # The name of the code review. The name of each code review in your
631
- # AWS account must be unique.
635
+ # Amazon Web Services account must be unique.
632
636
  # @return [String]
633
637
  #
634
638
  # @!attribute [rw] repository_association_arn
@@ -749,10 +753,10 @@ module Aws::CodeGuruReviewer
749
753
  # Optional parameter to describe the feedback for a given user. If
750
754
  # this is not supplied, it defaults to the user making the request.
751
755
  #
752
- # The `UserId` is an IAM principal that can be specified as an AWS
753
- # account ID or an Amazon Resource Name (ARN). For more information,
754
- # see [ Specifying a Principal][1] in the *AWS Identity and Access
755
- # Management User Guide*.
756
+ # The `UserId` is an IAM principal that can be specified as an Amazon
757
+ # Web Services account ID or an Amazon Resource Name (ARN). For more
758
+ # information, see [ Specifying a Principal][1] in the *Amazon Web
759
+ # Services Identity and Access Management User Guide*.
756
760
  #
757
761
  #
758
762
  #
@@ -932,11 +936,11 @@ module Aws::CodeGuruReviewer
932
936
  # An object that contains:
933
937
  #
934
938
  # * The encryption option for a repository association. It is either
935
- # owned by AWS Key Management Service (KMS) (`AWS_OWNED_CMK`) or
936
- # customer managed (`CUSTOMER_MANAGED_CMK`).
939
+ # owned by Amazon Web Services Key Management Service (KMS)
940
+ # (`AWS_OWNED_CMK`) or customer managed (`CUSTOMER_MANAGED_CMK`).
937
941
  #
938
- # * The ID of the AWS KMS key that is associated with a respository
939
- # association.
942
+ # * The ID of the Amazon Web Services KMS key that is associated with a
943
+ # respository association.
940
944
  #
941
945
  # @note When making an API call, you may pass KMSKeyDetails
942
946
  # data as a hash:
@@ -947,14 +951,14 @@ module Aws::CodeGuruReviewer
947
951
  # }
948
952
  #
949
953
  # @!attribute [rw] kms_key_id
950
- # The ID of the AWS KMS key that is associated with a respository
951
- # association.
954
+ # The ID of the Amazon Web Services KMS key that is associated with a
955
+ # respository association.
952
956
  # @return [String]
953
957
  #
954
958
  # @!attribute [rw] encryption_option
955
959
  # The encryption option for a repository association. It is either
956
- # owned by AWS Key Management Service (KMS) (`AWS_OWNED_CMK`) or
957
- # customer managed (`CUSTOMER_MANAGED_CMK`).
960
+ # owned by Amazon Web Services Key Management Service (KMS)
961
+ # (`AWS_OWNED_CMK`) or customer managed (`CUSTOMER_MANAGED_CMK`).
958
962
  # @return [String]
959
963
  #
960
964
  # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/KMSKeyDetails AWS API Documentation
@@ -1084,14 +1088,14 @@ module Aws::CodeGuruReviewer
1084
1088
  # @return [String]
1085
1089
  #
1086
1090
  # @!attribute [rw] user_ids
1087
- # An AWS user's account ID or Amazon Resource Name (ARN). Use this ID
1088
- # to query the recommendation feedback for a code review from that
1089
- # user.
1091
+ # An Amazon Web Services user's account ID or Amazon Resource Name
1092
+ # (ARN). Use this ID to query the recommendation feedback for a code
1093
+ # review from that user.
1090
1094
  #
1091
- # The `UserId` is an IAM principal that can be specified as an AWS
1092
- # account ID or an Amazon Resource Name (ARN). For more information,
1093
- # see [ Specifying a Principal][1] in the *AWS Identity and Access
1094
- # Management User Guide*.
1095
+ # The `UserId` is an IAM principal that can be specified as an Amazon
1096
+ # Web Services account ID or an Amazon Resource Name (ARN). For more
1097
+ # information, see [ Specifying a Principal][1] in the *Amazon Web
1098
+ # Services Identity and Access Management User Guide*.
1095
1099
  #
1096
1100
  #
1097
1101
  #
@@ -1251,11 +1255,11 @@ module Aws::CodeGuruReviewer
1251
1255
  # @return [Array<String>]
1252
1256
  #
1253
1257
  # @!attribute [rw] owners
1254
- # List of owners to use as a filter. For AWS CodeCommit, it is the
1255
- # name of the CodeCommit account that was used to associate the
1256
- # repository. For other repository source providers, such as Bitbucket
1257
- # and GitHub Enterprise Server, this is name of the account that was
1258
- # used to associate the repository.
1258
+ # List of owners to use as a filter. For Amazon Web Services
1259
+ # CodeCommit, it is the name of the CodeCommit account that was used
1260
+ # to associate the repository. For other repository source providers,
1261
+ # such as Bitbucket and GitHub Enterprise Server, this is name of the
1262
+ # account that was used to associate the repository.
1259
1263
  # @return [Array<String>]
1260
1264
  #
1261
1265
  # @!attribute [rw] max_results
@@ -1369,18 +1373,9 @@ module Aws::CodeGuruReviewer
1369
1373
  # Information about the statistics from the code review.
1370
1374
  #
1371
1375
  # @!attribute [rw] metered_lines_of_code_count
1372
- # Lines of code metered in the code review. For the initial code
1373
- # review pull request and all subsequent revisions, this includes all
1374
- # lines of code in the files added to the pull request. In subsequent
1375
- # revisions, for files that already existed in the pull request, this
1376
- # includes only the changed lines of code. In both cases, this does
1377
- # not include non-code lines such as comments and import statements.
1378
- # For example, if you submit a pull request containing 5 files, each
1379
- # with 500 lines of code, and in a subsequent revision you added a new
1380
- # file with 200 lines of code, and also modified a total of 25 lines
1381
- # across the initial 5 files, `MeteredLinesOfCodeCount` includes the
1382
- # first 5 files (5 * 500 = 2,500 lines), the new file (200 lines) and
1383
- # the 25 changed lines of code for a total of 2,725 lines of code.
1376
+ # `MeteredLinesOfCode` is the number of lines of code in the
1377
+ # repository where the code review happened. This does not include
1378
+ # non-code lines such as comments and blank lines.
1384
1379
  # @return [Integer]
1385
1380
  #
1386
1381
  # @!attribute [rw] findings_count
@@ -1503,10 +1498,10 @@ module Aws::CodeGuruReviewer
1503
1498
  # @!attribute [rw] user_id
1504
1499
  # The ID of the user that made the API call.
1505
1500
  #
1506
- # The `UserId` is an IAM principal that can be specified as an AWS
1507
- # account ID or an Amazon Resource Name (ARN). For more information,
1508
- # see [ Specifying a Principal][1] in the *AWS Identity and Access
1509
- # Management User Guide*.
1501
+ # The `UserId` is an IAM principal that can be specified as an Amazon
1502
+ # Web Services account ID or an Amazon Resource Name (ARN). For more
1503
+ # information, see [ Specifying a Principal][1] in the *Amazon Web
1504
+ # Services Identity and Access Management User Guide*.
1510
1505
  #
1511
1506
  #
1512
1507
  #
@@ -1549,10 +1544,10 @@ module Aws::CodeGuruReviewer
1549
1544
  # @!attribute [rw] user_id
1550
1545
  # The ID of the user that gave the feedback.
1551
1546
  #
1552
- # The `UserId` is an IAM principal that can be specified as an AWS
1553
- # account ID or an Amazon Resource Name (ARN). For more information,
1554
- # see [ Specifying a Principal][1] in the *AWS Identity and Access
1555
- # Management User Guide*.
1547
+ # The `UserId` is an IAM principal that can be specified as an Amazon
1548
+ # Web Services account ID or an Amazon Resource Name (ARN). For more
1549
+ # information, see [ Specifying a Principal][1] in the *Amazon Web
1550
+ # Services Identity and Access Management User Guide*.
1556
1551
  #
1557
1552
  #
1558
1553
  #
@@ -1600,6 +1595,18 @@ module Aws::CodeGuruReviewer
1600
1595
  # The type of a recommendation.
1601
1596
  # @return [String]
1602
1597
  #
1598
+ # @!attribute [rw] rule_metadata
1599
+ # Metadata about a rule. Rule metadata includes an ID, a name, a list
1600
+ # of tags, and a short and long description. CodeGuru Reviewer uses
1601
+ # rules to analyze code. A rule's recommendation is included in
1602
+ # analysis results if code is detected that violates the rule.
1603
+ # @return [Types::RuleMetadata]
1604
+ #
1605
+ # @!attribute [rw] severity
1606
+ # The severity of the issue in the code that generated this
1607
+ # recommendation.
1608
+ # @return [String]
1609
+ #
1603
1610
  # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/RecommendationSummary AWS API Documentation
1604
1611
  #
1605
1612
  class RecommendationSummary < Struct.new(
@@ -1608,15 +1615,18 @@ module Aws::CodeGuruReviewer
1608
1615
  :start_line,
1609
1616
  :end_line,
1610
1617
  :description,
1611
- :recommendation_category)
1618
+ :recommendation_category,
1619
+ :rule_metadata,
1620
+ :severity)
1612
1621
  SENSITIVE = []
1613
1622
  include Aws::Structure
1614
1623
  end
1615
1624
 
1616
- # Information about an associated AWS CodeCommit repository or an
1617
- # associated repository that is managed by AWS CodeStar Connections (for
1618
- # example, Bitbucket). This `Repository` object is not used if your
1619
- # source code is in an associated GitHub repository.
1625
+ # Information about an associated Amazon Web Services CodeCommit
1626
+ # repository or an associated repository that is managed by Amazon Web
1627
+ # Services CodeStar Connections (for example, Bitbucket). This
1628
+ # `Repository` object is not used if your source code is in an
1629
+ # associated GitHub repository.
1620
1630
  #
1621
1631
  # @note When making an API call, you may pass Repository
1622
1632
  # data as a hash:
@@ -1642,7 +1652,7 @@ module Aws::CodeGuruReviewer
1642
1652
  # }
1643
1653
  #
1644
1654
  # @!attribute [rw] code_commit
1645
- # Information about an AWS CodeCommit repository.
1655
+ # Information about an Amazon Web Services CodeCommit repository.
1646
1656
  # @return [Types::CodeCommitRepository]
1647
1657
  #
1648
1658
  # @!attribute [rw] bitbucket
@@ -1758,11 +1768,11 @@ module Aws::CodeGuruReviewer
1758
1768
  # @return [String]
1759
1769
  #
1760
1770
  # @!attribute [rw] connection_arn
1761
- # The Amazon Resource Name (ARN) of an AWS CodeStar Connections
1762
- # connection. Its format is
1771
+ # The Amazon Resource Name (ARN) of an Amazon Web Services CodeStar
1772
+ # Connections connection. Its format is
1763
1773
  # `arn:aws:codestar-connections:region-id:aws-account_id:connection/connection-id`.
1764
- # For more information, see [ `Connection` ][1] in the *AWS CodeStar
1765
- # Connections API Reference*.
1774
+ # For more information, see [ `Connection` ][1] in the *Amazon Web
1775
+ # Services CodeStar Connections API Reference*.
1766
1776
  #
1767
1777
  #
1768
1778
  #
@@ -1774,11 +1784,12 @@ module Aws::CodeGuruReviewer
1774
1784
  # @return [String]
1775
1785
  #
1776
1786
  # @!attribute [rw] owner
1777
- # The owner of the repository. For an AWS CodeCommit repository, this
1778
- # is the AWS account ID of the account that owns the repository. For a
1779
- # GitHub, GitHub Enterprise Server, or Bitbucket repository, this is
1780
- # the username for the account that owns the repository. For an S3
1781
- # repository, it can be the username or AWS account ID.
1787
+ # The owner of the repository. For an Amazon Web Services CodeCommit
1788
+ # repository, this is the Amazon Web Services account ID of the
1789
+ # account that owns the repository. For a GitHub, GitHub Enterprise
1790
+ # Server, or Bitbucket repository, this is the username for the
1791
+ # account that owns the repository. For an S3 repository, it can be
1792
+ # the username or Amazon Web Services account ID.
1782
1793
  # @return [String]
1783
1794
  #
1784
1795
  # @!attribute [rw] provider_type
@@ -1845,11 +1856,11 @@ module Aws::CodeGuruReviewer
1845
1856
  # A `KMSKeyDetails` object that contains:
1846
1857
  #
1847
1858
  # * The encryption option for this repository association. It is
1848
- # either owned by AWS Key Management Service (KMS) (`AWS_OWNED_CMK`)
1849
- # or customer managed (`CUSTOMER_MANAGED_CMK`).
1859
+ # either owned by Amazon Web Services Key Management Service (KMS)
1860
+ # (`AWS_OWNED_CMK`) or customer managed (`CUSTOMER_MANAGED_CMK`).
1850
1861
  #
1851
- # * The ID of the AWS KMS key that is associated with this respository
1852
- # association.
1862
+ # * The ID of the Amazon Web Services KMS key that is associated with
1863
+ # this respository association.
1853
1864
  # @return [Types::KMSKeyDetails]
1854
1865
  #
1855
1866
  # @!attribute [rw] s3_repository_details
@@ -1897,11 +1908,11 @@ module Aws::CodeGuruReviewer
1897
1908
  # @return [String]
1898
1909
  #
1899
1910
  # @!attribute [rw] connection_arn
1900
- # The Amazon Resource Name (ARN) of an AWS CodeStar Connections
1901
- # connection. Its format is
1911
+ # The Amazon Resource Name (ARN) of an Amazon Web Services CodeStar
1912
+ # Connections connection. Its format is
1902
1913
  # `arn:aws:codestar-connections:region-id:aws-account_id:connection/connection-id`.
1903
- # For more information, see [ `Connection` ][1] in the *AWS CodeStar
1904
- # Connections API Reference*.
1914
+ # For more information, see [ `Connection` ][1] in the *Amazon Web
1915
+ # Services CodeStar Connections API Reference*.
1905
1916
  #
1906
1917
  #
1907
1918
  #
@@ -1922,11 +1933,12 @@ module Aws::CodeGuruReviewer
1922
1933
  # @return [String]
1923
1934
  #
1924
1935
  # @!attribute [rw] owner
1925
- # The owner of the repository. For an AWS CodeCommit repository, this
1926
- # is the AWS account ID of the account that owns the repository. For a
1927
- # GitHub, GitHub Enterprise Server, or Bitbucket repository, this is
1928
- # the username for the account that owns the repository. For an S3
1929
- # repository, it can be the username or AWS account ID.
1936
+ # The owner of the repository. For an Amazon Web Services CodeCommit
1937
+ # repository, this is the Amazon Web Services account ID of the
1938
+ # account that owns the repository. For a GitHub, GitHub Enterprise
1939
+ # Server, or Bitbucket repository, this is the username for the
1940
+ # account that owns the repository. For an S3 repository, it can be
1941
+ # the username or Amazon Web Services account ID.
1930
1942
  # @return [String]
1931
1943
  #
1932
1944
  # @!attribute [rw] provider_type
@@ -2085,6 +2097,43 @@ module Aws::CodeGuruReviewer
2085
2097
  include Aws::Structure
2086
2098
  end
2087
2099
 
2100
+ # Metadata about a rule. Rule metadata includes an ID, a name, a list of
2101
+ # tags, and a short and long description. CodeGuru Reviewer uses rules
2102
+ # to analyze code. A rule's recommendation is included in analysis
2103
+ # results if code is detected that violates the rule.
2104
+ #
2105
+ # @!attribute [rw] rule_id
2106
+ # The ID of the rule.
2107
+ # @return [String]
2108
+ #
2109
+ # @!attribute [rw] rule_name
2110
+ # The name of the rule.
2111
+ # @return [String]
2112
+ #
2113
+ # @!attribute [rw] short_description
2114
+ # A short description of the rule.
2115
+ # @return [String]
2116
+ #
2117
+ # @!attribute [rw] long_description
2118
+ # A long description of the rule.
2119
+ # @return [String]
2120
+ #
2121
+ # @!attribute [rw] rule_tags
2122
+ # Tags that are associated with the rule.
2123
+ # @return [Array<String>]
2124
+ #
2125
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/RuleMetadata AWS API Documentation
2126
+ #
2127
+ class RuleMetadata < Struct.new(
2128
+ :rule_id,
2129
+ :rule_name,
2130
+ :short_description,
2131
+ :long_description,
2132
+ :rule_tags)
2133
+ SENSITIVE = []
2134
+ include Aws::Structure
2135
+ end
2136
+
2088
2137
  # Information about an associated repository in an S3 bucket. The
2089
2138
  # associated repository contains a source code .zip file and a build
2090
2139
  # artifacts .zip file that contains .jar or .class files.
@@ -2349,11 +2398,11 @@ module Aws::CodeGuruReviewer
2349
2398
  # @return [String]
2350
2399
  #
2351
2400
  # @!attribute [rw] connection_arn
2352
- # The Amazon Resource Name (ARN) of an AWS CodeStar Connections
2353
- # connection. Its format is
2401
+ # The Amazon Resource Name (ARN) of an Amazon Web Services CodeStar
2402
+ # Connections connection. Its format is
2354
2403
  # `arn:aws:codestar-connections:region-id:aws-account_id:connection/connection-id`.
2355
- # For more information, see [ `Connection` ][1] in the *AWS CodeStar
2356
- # Connections API Reference*.
2404
+ # For more information, see [ `Connection` ][1] in the *Amazon Web
2405
+ # Services CodeStar Connections API Reference*.
2357
2406
  #
2358
2407
  #
2359
2408
  #
@@ -2364,7 +2413,7 @@ module Aws::CodeGuruReviewer
2364
2413
  # The owner of the repository. For a GitHub, GitHub Enterprise, or
2365
2414
  # Bitbucket repository, this is the username for the account that owns
2366
2415
  # the repository. For an S3 repository, this can be the username or
2367
- # AWS account ID.
2416
+ # Amazon Web Services account ID.
2368
2417
  # @return [String]
2369
2418
  #
2370
2419
  # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/ThirdPartySourceRepository AWS API Documentation
@@ -49,6 +49,6 @@ require_relative 'aws-sdk-codegurureviewer/customizations'
49
49
  # @!group service
50
50
  module Aws::CodeGuruReviewer
51
51
 
52
- GEM_VERSION = '1.22.0'
52
+ GEM_VERSION = '1.23.0'
53
53
 
54
54
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-codegurureviewer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.22.0
4
+ version: 1.23.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: 2021-09-03 00:00:00.000000000 Z
11
+ date: 2021-09-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core