aws-sdk-codegurureviewer 1.34.0 → 1.35.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
2
  SHA256:
3
- metadata.gz: 68bcc0f1905d88f8e95fb87527695694bfee44a24a0815e5067861e4b8b0e98b
4
- data.tar.gz: b17d51255130456555173cdfbdc7ce8e22acc86504701719bc19bb503b185485
3
+ metadata.gz: 43646347925c9d017f015520c76b8e78139a964aaa2387ffbaafed3d6e307dc4
4
+ data.tar.gz: b1525a685477ed1675b44dd01c2465b3a6ac407b9ab8db20b8e09a740a281f32
5
5
  SHA512:
6
- metadata.gz: 421641f04f0ecb94a25246a93b022bcda53b33d541919410b54d06dd78481e7810311e00bcafda9b26fc59fd1084d69a559dc3f1a8c6ee8a1a942094833347ec
7
- data.tar.gz: 3812ab8a8c040ca9a2ba67fee4c34f2d7d789219551bcd6dd591cbc8d137e5cb05be29b57b68c77a59a0769afb0d3cd9bd7733d81526f66351ed34018d14a75a
6
+ metadata.gz: 52f4a1f4079081b30777f73f5b127367b0e1f1e62ad8206fc6cf8ca858a64a921b5a81ecb2847af76d92d6ab8b2fe5978a0d747411a5604932757fe7a58027e3
7
+ data.tar.gz: 95dfb0fc1a83b4a19aa84c2a180b4096fdeb20fb924e0e306712265166cd6aae4ff8d2a381ea26735691e44d9bad5385c6ad2524848c3347864a0d31a7a95ba7
data/CHANGELOG.md CHANGED
@@ -1,6 +1,13 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.35.0 (2023-01-18)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ * Issue - Replace runtime endpoint resolution approach with generated ruby code.
10
+
4
11
  1.34.0 (2022-10-25)
5
12
  ------------------
6
13
 
@@ -180,4 +187,4 @@ Unreleased Changes
180
187
  1.0.0 (2019-12-03)
181
188
  ------------------
182
189
 
183
- * Feature - Initial release of `aws-sdk-codegurureviewer`.
190
+ * Feature - Initial release of `aws-sdk-codegurureviewer`.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.34.0
1
+ 1.35.0
@@ -1412,7 +1412,7 @@ module Aws::CodeGuruReviewer
1412
1412
  params: params,
1413
1413
  config: config)
1414
1414
  context[:gem_name] = 'aws-sdk-codegurureviewer'
1415
- context[:gem_version] = '1.34.0'
1415
+ context[:gem_version] = '1.35.0'
1416
1416
  Seahorse::Client::Request.new(handlers, context)
1417
1417
  end
1418
1418
 
@@ -9,104 +9,43 @@
9
9
 
10
10
  module Aws::CodeGuruReviewer
11
11
  class EndpointProvider
12
- def initialize(rule_set = nil)
13
- @@rule_set ||= begin
14
- endpoint_rules = Aws::Json.load(Base64.decode64(RULES))
15
- Aws::Endpoints::RuleSet.new(
16
- version: endpoint_rules['version'],
17
- service_id: endpoint_rules['serviceId'],
18
- parameters: endpoint_rules['parameters'],
19
- rules: endpoint_rules['rules']
20
- )
12
+ def resolve_endpoint(parameters)
13
+ region = parameters.region
14
+ use_dual_stack = parameters.use_dual_stack
15
+ use_fips = parameters.use_fips
16
+ endpoint = parameters.endpoint
17
+ if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
18
+ if Aws::Endpoints::Matchers.set?(endpoint) && (url = Aws::Endpoints::Matchers.parse_url(endpoint))
19
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
20
+ raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
21
+ end
22
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
23
+ raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
24
+ end
25
+ return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
26
+ end
27
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
28
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
29
+ return Aws::Endpoints::Endpoint.new(url: "https://codeguru-reviewer-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
30
+ end
31
+ raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
32
+ end
33
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
34
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
35
+ return Aws::Endpoints::Endpoint.new(url: "https://codeguru-reviewer-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
36
+ end
37
+ raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
38
+ end
39
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
40
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
41
+ return Aws::Endpoints::Endpoint.new(url: "https://codeguru-reviewer.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
42
+ end
43
+ raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
44
+ end
45
+ return Aws::Endpoints::Endpoint.new(url: "https://codeguru-reviewer.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
21
46
  end
22
- @provider = Aws::Endpoints::RulesProvider.new(rule_set || @@rule_set)
23
- end
47
+ raise ArgumentError, 'No endpoint could be resolved'
24
48
 
25
- def resolve_endpoint(parameters)
26
- @provider.resolve_endpoint(parameters)
27
49
  end
28
-
29
- # @api private
30
- RULES = <<-JSON
31
- eyJ2ZXJzaW9uIjoiMS4wIiwicGFyYW1ldGVycyI6eyJSZWdpb24iOnsiYnVp
32
- bHRJbiI6IkFXUzo6UmVnaW9uIiwicmVxdWlyZWQiOmZhbHNlLCJkb2N1bWVu
33
- dGF0aW9uIjoiVGhlIEFXUyByZWdpb24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wczovL2NvZGVndXJ1LXJldmlld2VyLntSZWdpb259LntQYXJ0
101
- aXRpb25SZXN1bHQjZHVhbFN0YWNrRG5zU3VmZml4fSIsInByb3BlcnRpZXMi
102
- Ont9LCJoZWFkZXJzIjp7fX0sInR5cGUiOiJlbmRwb2ludCJ9XX0seyJjb25k
103
- aXRpb25zIjpbXSwiZXJyb3IiOiJEdWFsU3RhY2sgaXMgZW5hYmxlZCBidXQg
104
- dGhpcyBwYXJ0aXRpb24gZG9lcyBub3Qgc3VwcG9ydCBEdWFsU3RhY2siLCJ0
105
- eXBlIjoiZXJyb3IifV19LHsiY29uZGl0aW9ucyI6W10sImVuZHBvaW50Ijp7
106
- InVybCI6Imh0dHBzOi8vY29kZWd1cnUtcmV2aWV3ZXIue1JlZ2lvbn0ue1Bh
107
- cnRpdGlvblJlc3VsdCNkbnNTdWZmaXh9IiwicHJvcGVydGllcyI6e30sImhl
108
- YWRlcnMiOnt9fSwidHlwZSI6ImVuZHBvaW50In1dfV19
109
-
110
- JSON
111
50
  end
112
51
  end
@@ -23,39 +23,6 @@ module Aws::CodeGuruReviewer
23
23
  include Aws::Structure
24
24
  end
25
25
 
26
- # @note When making an API call, you may pass AssociateRepositoryRequest
27
- # data as a hash:
28
- #
29
- # {
30
- # repository: { # required
31
- # code_commit: {
32
- # name: "Name", # required
33
- # },
34
- # bitbucket: {
35
- # name: "Name", # required
36
- # connection_arn: "ConnectionArn", # required
37
- # owner: "Owner", # required
38
- # },
39
- # git_hub_enterprise_server: {
40
- # name: "Name", # required
41
- # connection_arn: "ConnectionArn", # required
42
- # owner: "Owner", # required
43
- # },
44
- # s3_bucket: {
45
- # name: "Name", # required
46
- # bucket_name: "S3BucketName", # required
47
- # },
48
- # },
49
- # client_request_token: "ClientRequestToken",
50
- # tags: {
51
- # "TagKey" => "TagValue",
52
- # },
53
- # kms_key_details: {
54
- # kms_key_id: "KMSKeyId",
55
- # encryption_option: "AWS_OWNED_CMK", # accepts AWS_OWNED_CMK, CUSTOMER_MANAGED_CMK
56
- # },
57
- # }
58
- #
59
26
  # @!attribute [rw] repository
60
27
  # The repository to associate.
61
28
  # @return [Types::Repository]
@@ -137,14 +104,6 @@ module Aws::CodeGuruReviewer
137
104
  #
138
105
  # [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_SourceCodeType
139
106
  #
140
- # @note When making an API call, you may pass BranchDiffSourceCodeType
141
- # data as a hash:
142
- #
143
- # {
144
- # source_branch_name: "BranchName", # required
145
- # destination_branch_name: "BranchName", # required
146
- # }
147
- #
148
107
  # @!attribute [rw] source_branch_name
149
108
  # The source branch for a diff in an associated repository.
150
109
  # @return [String]
@@ -171,14 +130,6 @@ module Aws::CodeGuruReviewer
171
130
  # * Build artifacts are .jar or .class files that are compressed in a
172
131
  # .zip file.
173
132
  #
174
- # @note When making an API call, you may pass CodeArtifacts
175
- # data as a hash:
176
- #
177
- # {
178
- # source_code_artifacts_object_key: "SourceCodeArtifactsObjectKey", # required
179
- # build_artifacts_object_key: "BuildArtifactsObjectKey",
180
- # }
181
- #
182
133
  # @!attribute [rw] source_code_artifacts_object_key
183
134
  # The S3 object key for a source code .zip file. This is required for
184
135
  # all code reviews.
@@ -209,13 +160,6 @@ module Aws::CodeGuruReviewer
209
160
  # and Amazon Web Services account where its CodeGuru Reviewer code
210
161
  # reviews are configured.
211
162
  #
212
- # @note When making an API call, you may pass CodeCommitRepository
213
- # data as a hash:
214
- #
215
- # {
216
- # name: "Name", # required
217
- # }
218
- #
219
163
  # @!attribute [rw] name
220
164
  # The name of the Amazon Web Services CodeCommit repository. For more
221
165
  # information, see [repositoryName][1] in the *Amazon Web Services
@@ -461,51 +405,6 @@ module Aws::CodeGuruReviewer
461
405
  #
462
406
  # [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CreateCodeReview
463
407
  #
464
- # @note When making an API call, you may pass CodeReviewType
465
- # data as a hash:
466
- #
467
- # {
468
- # repository_analysis: { # required
469
- # repository_head: {
470
- # branch_name: "BranchName", # required
471
- # },
472
- # source_code_type: {
473
- # commit_diff: {
474
- # source_commit: "CommitId",
475
- # destination_commit: "CommitId",
476
- # merge_base_commit: "CommitId",
477
- # },
478
- # repository_head: {
479
- # branch_name: "BranchName", # required
480
- # },
481
- # branch_diff: {
482
- # source_branch_name: "BranchName", # required
483
- # destination_branch_name: "BranchName", # required
484
- # },
485
- # s3_bucket_repository: {
486
- # name: "Name", # required
487
- # details: {
488
- # bucket_name: "S3BucketName",
489
- # code_artifacts: {
490
- # source_code_artifacts_object_key: "SourceCodeArtifactsObjectKey", # required
491
- # build_artifacts_object_key: "BuildArtifactsObjectKey",
492
- # },
493
- # },
494
- # },
495
- # request_metadata: {
496
- # request_id: "RequestId",
497
- # requester: "Requester",
498
- # event_info: {
499
- # name: "EventName",
500
- # state: "EventState",
501
- # },
502
- # vendor_name: "GitHub", # accepts GitHub, GitLab, NativeS3
503
- # },
504
- # },
505
- # },
506
- # analysis_types: ["Security"], # accepts Security, CodeQuality
507
- # }
508
- #
509
408
  # @!attribute [rw] repository_analysis
510
409
  # A code review that analyzes all code under a specified branch in an
511
410
  # associated repository. The associated repository is specified using
@@ -540,15 +439,6 @@ module Aws::CodeGuruReviewer
540
439
  #
541
440
  # [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_SourceCodeType
542
441
  #
543
- # @note When making an API call, you may pass CommitDiffSourceCodeType
544
- # data as a hash:
545
- #
546
- # {
547
- # source_commit: "CommitId",
548
- # destination_commit: "CommitId",
549
- # merge_base_commit: "CommitId",
550
- # }
551
- #
552
442
  # @!attribute [rw] source_commit
553
443
  # The SHA of the source commit used to generate a commit diff. This
554
444
  # field is required for a pull request code review.
@@ -588,56 +478,6 @@ module Aws::CodeGuruReviewer
588
478
  include Aws::Structure
589
479
  end
590
480
 
591
- # @note When making an API call, you may pass CreateCodeReviewRequest
592
- # data as a hash:
593
- #
594
- # {
595
- # name: "CodeReviewName", # required
596
- # repository_association_arn: "AssociationArn", # required
597
- # type: { # required
598
- # repository_analysis: { # required
599
- # repository_head: {
600
- # branch_name: "BranchName", # required
601
- # },
602
- # source_code_type: {
603
- # commit_diff: {
604
- # source_commit: "CommitId",
605
- # destination_commit: "CommitId",
606
- # merge_base_commit: "CommitId",
607
- # },
608
- # repository_head: {
609
- # branch_name: "BranchName", # required
610
- # },
611
- # branch_diff: {
612
- # source_branch_name: "BranchName", # required
613
- # destination_branch_name: "BranchName", # required
614
- # },
615
- # s3_bucket_repository: {
616
- # name: "Name", # required
617
- # details: {
618
- # bucket_name: "S3BucketName",
619
- # code_artifacts: {
620
- # source_code_artifacts_object_key: "SourceCodeArtifactsObjectKey", # required
621
- # build_artifacts_object_key: "BuildArtifactsObjectKey",
622
- # },
623
- # },
624
- # },
625
- # request_metadata: {
626
- # request_id: "RequestId",
627
- # requester: "Requester",
628
- # event_info: {
629
- # name: "EventName",
630
- # state: "EventState",
631
- # },
632
- # vendor_name: "GitHub", # accepts GitHub, GitLab, NativeS3
633
- # },
634
- # },
635
- # },
636
- # analysis_types: ["Security"], # accepts Security, CodeQuality
637
- # },
638
- # client_request_token: "ClientRequestToken",
639
- # }
640
- #
641
481
  # @!attribute [rw] name
642
482
  # The name of the code review. The name of each code review in your
643
483
  # Amazon Web Services account must be unique.
@@ -700,13 +540,6 @@ module Aws::CodeGuruReviewer
700
540
  include Aws::Structure
701
541
  end
702
542
 
703
- # @note When making an API call, you may pass DescribeCodeReviewRequest
704
- # data as a hash:
705
- #
706
- # {
707
- # code_review_arn: "Arn", # required
708
- # }
709
- #
710
543
  # @!attribute [rw] code_review_arn
711
544
  # The Amazon Resource Name (ARN) of the [CodeReview][1] object.
712
545
  #
@@ -735,15 +568,6 @@ module Aws::CodeGuruReviewer
735
568
  include Aws::Structure
736
569
  end
737
570
 
738
- # @note When making an API call, you may pass DescribeRecommendationFeedbackRequest
739
- # data as a hash:
740
- #
741
- # {
742
- # code_review_arn: "Arn", # required
743
- # recommendation_id: "RecommendationId", # required
744
- # user_id: "UserId",
745
- # }
746
- #
747
571
  # @!attribute [rw] code_review_arn
748
572
  # The Amazon Resource Name (ARN) of the [CodeReview][1] object.
749
573
  #
@@ -793,13 +617,6 @@ module Aws::CodeGuruReviewer
793
617
  include Aws::Structure
794
618
  end
795
619
 
796
- # @note When making an API call, you may pass DescribeRepositoryAssociationRequest
797
- # data as a hash:
798
- #
799
- # {
800
- # association_arn: "AssociationArn", # required
801
- # }
802
- #
803
620
  # @!attribute [rw] association_arn
804
621
  # The Amazon Resource Name (ARN) of the [RepositoryAssociation][1]
805
622
  # object. You can retrieve this ARN by calling
@@ -845,13 +662,6 @@ module Aws::CodeGuruReviewer
845
662
  include Aws::Structure
846
663
  end
847
664
 
848
- # @note When making an API call, you may pass DisassociateRepositoryRequest
849
- # data as a hash:
850
- #
851
- # {
852
- # association_arn: "AssociationArn", # required
853
- # }
854
- #
855
665
  # @!attribute [rw] association_arn
856
666
  # The Amazon Resource Name (ARN) of the [RepositoryAssociation][1]
857
667
  # object. You can retrieve this ARN by calling
@@ -900,14 +710,6 @@ module Aws::CodeGuruReviewer
900
710
  # Information about an event. The event might be a push, pull request,
901
711
  # scheduled request, or another type of event.
902
712
  #
903
- # @note When making an API call, you may pass EventInfo
904
- # data as a hash:
905
- #
906
- # {
907
- # name: "EventName",
908
- # state: "EventState",
909
- # }
910
- #
911
713
  # @!attribute [rw] name
912
714
  # The name of the event. The possible names are `pull_request`,
913
715
  # `workflow_dispatch`, `schedule`, and `push`
@@ -950,14 +752,6 @@ module Aws::CodeGuruReviewer
950
752
  # * The ID of the Amazon Web Services KMS key that is associated with a
951
753
  # repository association.
952
754
  #
953
- # @note When making an API call, you may pass KMSKeyDetails
954
- # data as a hash:
955
- #
956
- # {
957
- # kms_key_id: "KMSKeyId",
958
- # encryption_option: "AWS_OWNED_CMK", # accepts AWS_OWNED_CMK, CUSTOMER_MANAGED_CMK
959
- # }
960
- #
961
755
  # @!attribute [rw] kms_key_id
962
756
  # The ID of the Amazon Web Services KMS key that is associated with a
963
757
  # repository association.
@@ -978,18 +772,6 @@ module Aws::CodeGuruReviewer
978
772
  include Aws::Structure
979
773
  end
980
774
 
981
- # @note When making an API call, you may pass ListCodeReviewsRequest
982
- # data as a hash:
983
- #
984
- # {
985
- # provider_types: ["CodeCommit"], # accepts CodeCommit, GitHub, Bitbucket, GitHubEnterpriseServer, S3Bucket
986
- # states: ["Completed"], # accepts Completed, Pending, Failed, Deleting
987
- # repository_names: ["Name"],
988
- # type: "PullRequest", # required, accepts PullRequest, RepositoryAnalysis
989
- # max_results: 1,
990
- # next_token: "NextToken",
991
- # }
992
- #
993
775
  # @!attribute [rw] provider_types
994
776
  # List of provider types for filtering that needs to be applied before
995
777
  # displaying the result. For example, `providerTypes=[GitHub]` lists
@@ -1064,17 +846,6 @@ module Aws::CodeGuruReviewer
1064
846
  include Aws::Structure
1065
847
  end
1066
848
 
1067
- # @note When making an API call, you may pass ListRecommendationFeedbackRequest
1068
- # data as a hash:
1069
- #
1070
- # {
1071
- # next_token: "NextToken",
1072
- # max_results: 1,
1073
- # code_review_arn: "Arn", # required
1074
- # user_ids: ["UserId"],
1075
- # recommendation_ids: ["RecommendationId"],
1076
- # }
1077
- #
1078
849
  # @!attribute [rw] next_token
1079
850
  # If `nextToken` is returned, there are more results available. The
1080
851
  # value of `nextToken` is a unique pagination token for each page.
@@ -1148,15 +919,6 @@ module Aws::CodeGuruReviewer
1148
919
  include Aws::Structure
1149
920
  end
1150
921
 
1151
- # @note When making an API call, you may pass ListRecommendationsRequest
1152
- # data as a hash:
1153
- #
1154
- # {
1155
- # next_token: "NextToken",
1156
- # max_results: 1,
1157
- # code_review_arn: "Arn", # required
1158
- # }
1159
- #
1160
922
  # @!attribute [rw] next_token
1161
923
  # Pagination token.
1162
924
  # @return [String]
@@ -1201,18 +963,6 @@ module Aws::CodeGuruReviewer
1201
963
  include Aws::Structure
1202
964
  end
1203
965
 
1204
- # @note When making an API call, you may pass ListRepositoryAssociationsRequest
1205
- # data as a hash:
1206
- #
1207
- # {
1208
- # provider_types: ["CodeCommit"], # accepts CodeCommit, GitHub, Bitbucket, GitHubEnterpriseServer, S3Bucket
1209
- # states: ["Associated"], # accepts Associated, Associating, Failed, Disassociating, Disassociated
1210
- # names: ["Name"],
1211
- # owners: ["Owner"],
1212
- # max_results: 1,
1213
- # next_token: "NextToken",
1214
- # }
1215
- #
1216
966
  # @!attribute [rw] provider_types
1217
967
  # List of provider types to use as a filter.
1218
968
  # @return [Array<String>]
@@ -1331,13 +1081,6 @@ module Aws::CodeGuruReviewer
1331
1081
  include Aws::Structure
1332
1082
  end
1333
1083
 
1334
- # @note When making an API call, you may pass ListTagsForResourceRequest
1335
- # data as a hash:
1336
- #
1337
- # {
1338
- # resource_arn: "AssociationArn", # required
1339
- # }
1340
- #
1341
1084
  # @!attribute [rw] resource_arn
1342
1085
  # The Amazon Resource Name (ARN) of the [RepositoryAssociation][1]
1343
1086
  # object. You can retrieve this ARN by calling
@@ -1472,15 +1215,6 @@ module Aws::CodeGuruReviewer
1472
1215
  include Aws::Structure
1473
1216
  end
1474
1217
 
1475
- # @note When making an API call, you may pass PutRecommendationFeedbackRequest
1476
- # data as a hash:
1477
- #
1478
- # {
1479
- # code_review_arn: "Arn", # required
1480
- # recommendation_id: "RecommendationId", # required
1481
- # reactions: ["ThumbsUp"], # required, accepts ThumbsUp, ThumbsDown
1482
- # }
1483
- #
1484
1218
  # @!attribute [rw] code_review_arn
1485
1219
  # The Amazon Resource Name (ARN) of the [CodeReview][1] object.
1486
1220
  #
@@ -1666,29 +1400,6 @@ module Aws::CodeGuruReviewer
1666
1400
  # `Repository` object is not used if your source code is in an
1667
1401
  # associated GitHub repository.
1668
1402
  #
1669
- # @note When making an API call, you may pass Repository
1670
- # data as a hash:
1671
- #
1672
- # {
1673
- # code_commit: {
1674
- # name: "Name", # required
1675
- # },
1676
- # bitbucket: {
1677
- # name: "Name", # required
1678
- # connection_arn: "ConnectionArn", # required
1679
- # owner: "Owner", # required
1680
- # },
1681
- # git_hub_enterprise_server: {
1682
- # name: "Name", # required
1683
- # connection_arn: "ConnectionArn", # required
1684
- # owner: "Owner", # required
1685
- # },
1686
- # s3_bucket: {
1687
- # name: "Name", # required
1688
- # bucket_name: "S3BucketName", # required
1689
- # },
1690
- # }
1691
- #
1692
1403
  # @!attribute [rw] code_commit
1693
1404
  # Information about an Amazon Web Services CodeCommit repository.
1694
1405
  # @return [Types::CodeCommitRepository]
@@ -1724,48 +1435,6 @@ module Aws::CodeGuruReviewer
1724
1435
  #
1725
1436
  # [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CreateCodeReview
1726
1437
  #
1727
- # @note When making an API call, you may pass RepositoryAnalysis
1728
- # data as a hash:
1729
- #
1730
- # {
1731
- # repository_head: {
1732
- # branch_name: "BranchName", # required
1733
- # },
1734
- # source_code_type: {
1735
- # commit_diff: {
1736
- # source_commit: "CommitId",
1737
- # destination_commit: "CommitId",
1738
- # merge_base_commit: "CommitId",
1739
- # },
1740
- # repository_head: {
1741
- # branch_name: "BranchName", # required
1742
- # },
1743
- # branch_diff: {
1744
- # source_branch_name: "BranchName", # required
1745
- # destination_branch_name: "BranchName", # required
1746
- # },
1747
- # s3_bucket_repository: {
1748
- # name: "Name", # required
1749
- # details: {
1750
- # bucket_name: "S3BucketName",
1751
- # code_artifacts: {
1752
- # source_code_artifacts_object_key: "SourceCodeArtifactsObjectKey", # required
1753
- # build_artifacts_object_key: "BuildArtifactsObjectKey",
1754
- # },
1755
- # },
1756
- # },
1757
- # request_metadata: {
1758
- # request_id: "RequestId",
1759
- # requester: "Requester",
1760
- # event_info: {
1761
- # name: "EventName",
1762
- # state: "EventState",
1763
- # },
1764
- # vendor_name: "GitHub", # accepts GitHub, GitLab, NativeS3
1765
- # },
1766
- # },
1767
- # }
1768
- #
1769
1438
  # @!attribute [rw] repository_head
1770
1439
  # A [SourceCodeType][1] that specifies the tip of a branch in an
1771
1440
  # associated repository.
@@ -2046,13 +1715,6 @@ module Aws::CodeGuruReviewer
2046
1715
  #
2047
1716
  # [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_SourceCodeType
2048
1717
  #
2049
- # @note When making an API call, you may pass RepositoryHeadSourceCodeType
2050
- # data as a hash:
2051
- #
2052
- # {
2053
- # branch_name: "BranchName", # required
2054
- # }
2055
- #
2056
1718
  # @!attribute [rw] branch_name
2057
1719
  # The name of the branch in an associated repository. The
2058
1720
  # `RepositoryHeadSourceCodeType` specifies the tip of this branch.
@@ -2069,19 +1731,6 @@ module Aws::CodeGuruReviewer
2069
1731
  # Metadata that is associated with a code review. This applies to both
2070
1732
  # pull request and repository analysis code reviews.
2071
1733
  #
2072
- # @note When making an API call, you may pass RequestMetadata
2073
- # data as a hash:
2074
- #
2075
- # {
2076
- # request_id: "RequestId",
2077
- # requester: "Requester",
2078
- # event_info: {
2079
- # name: "EventName",
2080
- # state: "EventState",
2081
- # },
2082
- # vendor_name: "GitHub", # accepts GitHub, GitLab, NativeS3
2083
- # }
2084
- #
2085
1734
  # @!attribute [rw] request_id
2086
1735
  # The ID of the request. This is required for a pull request code
2087
1736
  # review.
@@ -2176,20 +1825,6 @@ module Aws::CodeGuruReviewer
2176
1825
  # associated repository contains a source code .zip file and a build
2177
1826
  # artifacts .zip file that contains .jar or .class files.
2178
1827
  #
2179
- # @note When making an API call, you may pass S3BucketRepository
2180
- # data as a hash:
2181
- #
2182
- # {
2183
- # name: "Name", # required
2184
- # details: {
2185
- # bucket_name: "S3BucketName",
2186
- # code_artifacts: {
2187
- # source_code_artifacts_object_key: "SourceCodeArtifactsObjectKey", # required
2188
- # build_artifacts_object_key: "BuildArtifactsObjectKey",
2189
- # },
2190
- # },
2191
- # }
2192
- #
2193
1828
  # @!attribute [rw] name
2194
1829
  # The name of the repository when the `ProviderType` is `S3Bucket`.
2195
1830
  # @return [String]
@@ -2212,14 +1847,6 @@ module Aws::CodeGuruReviewer
2212
1847
 
2213
1848
  # Information about a repository in an S3 bucket.
2214
1849
  #
2215
- # @note When making an API call, you may pass S3Repository
2216
- # data as a hash:
2217
- #
2218
- # {
2219
- # name: "Name", # required
2220
- # bucket_name: "S3BucketName", # required
2221
- # }
2222
- #
2223
1850
  # @!attribute [rw] name
2224
1851
  # The name of the repository in the S3 bucket.
2225
1852
  # @return [String]
@@ -2242,17 +1869,6 @@ module Aws::CodeGuruReviewer
2242
1869
  # contains the S3 object keys for a source code .zip file and for a
2243
1870
  # build artifacts .zip file that contains .jar or .class files.
2244
1871
  #
2245
- # @note When making an API call, you may pass S3RepositoryDetails
2246
- # data as a hash:
2247
- #
2248
- # {
2249
- # bucket_name: "S3BucketName",
2250
- # code_artifacts: {
2251
- # source_code_artifacts_object_key: "SourceCodeArtifactsObjectKey", # required
2252
- # build_artifacts_object_key: "BuildArtifactsObjectKey",
2253
- # },
2254
- # }
2255
- #
2256
1872
  # @!attribute [rw] bucket_name
2257
1873
  # The name of the S3 bucket used for associating a new S3 repository.
2258
1874
  # It must begin with `codeguru-reviewer-`.
@@ -2275,43 +1891,6 @@ module Aws::CodeGuruReviewer
2275
1891
 
2276
1892
  # Specifies the source code that is analyzed in a code review.
2277
1893
  #
2278
- # @note When making an API call, you may pass SourceCodeType
2279
- # data as a hash:
2280
- #
2281
- # {
2282
- # commit_diff: {
2283
- # source_commit: "CommitId",
2284
- # destination_commit: "CommitId",
2285
- # merge_base_commit: "CommitId",
2286
- # },
2287
- # repository_head: {
2288
- # branch_name: "BranchName", # required
2289
- # },
2290
- # branch_diff: {
2291
- # source_branch_name: "BranchName", # required
2292
- # destination_branch_name: "BranchName", # required
2293
- # },
2294
- # s3_bucket_repository: {
2295
- # name: "Name", # required
2296
- # details: {
2297
- # bucket_name: "S3BucketName",
2298
- # code_artifacts: {
2299
- # source_code_artifacts_object_key: "SourceCodeArtifactsObjectKey", # required
2300
- # build_artifacts_object_key: "BuildArtifactsObjectKey",
2301
- # },
2302
- # },
2303
- # },
2304
- # request_metadata: {
2305
- # request_id: "RequestId",
2306
- # requester: "Requester",
2307
- # event_info: {
2308
- # name: "EventName",
2309
- # state: "EventState",
2310
- # },
2311
- # vendor_name: "GitHub", # accepts GitHub, GitLab, NativeS3
2312
- # },
2313
- # }
2314
- #
2315
1894
  # @!attribute [rw] commit_diff
2316
1895
  # A [SourceCodeType][1] that specifies a commit diff created by a pull
2317
1896
  # request on an associated repository.
@@ -2372,16 +1951,6 @@ module Aws::CodeGuruReviewer
2372
1951
  include Aws::Structure
2373
1952
  end
2374
1953
 
2375
- # @note When making an API call, you may pass TagResourceRequest
2376
- # data as a hash:
2377
- #
2378
- # {
2379
- # resource_arn: "AssociationArn", # required
2380
- # tags: { # required
2381
- # "TagKey" => "TagValue",
2382
- # },
2383
- # }
2384
- #
2385
1954
  # @!attribute [rw] resource_arn
2386
1955
  # The Amazon Resource Name (ARN) of the [RepositoryAssociation][1]
2387
1956
  # object. You can retrieve this ARN by calling
@@ -2422,15 +1991,6 @@ module Aws::CodeGuruReviewer
2422
1991
  # Information about a third-party source repository connected to
2423
1992
  # CodeGuru Reviewer.
2424
1993
  #
2425
- # @note When making an API call, you may pass ThirdPartySourceRepository
2426
- # data as a hash:
2427
- #
2428
- # {
2429
- # name: "Name", # required
2430
- # connection_arn: "ConnectionArn", # required
2431
- # owner: "Owner", # required
2432
- # }
2433
- #
2434
1994
  # @!attribute [rw] name
2435
1995
  # The name of the third party source repository.
2436
1996
  # @return [String]
@@ -2477,14 +2037,6 @@ module Aws::CodeGuruReviewer
2477
2037
  include Aws::Structure
2478
2038
  end
2479
2039
 
2480
- # @note When making an API call, you may pass UntagResourceRequest
2481
- # data as a hash:
2482
- #
2483
- # {
2484
- # resource_arn: "AssociationArn", # required
2485
- # tag_keys: ["TagKey"], # required
2486
- # }
2487
- #
2488
2040
  # @!attribute [rw] resource_arn
2489
2041
  # The Amazon Resource Name (ARN) of the [RepositoryAssociation][1]
2490
2042
  # object. You can retrieve this ARN by calling
@@ -53,6 +53,6 @@ require_relative 'aws-sdk-codegurureviewer/customizations'
53
53
  # @!group service
54
54
  module Aws::CodeGuruReviewer
55
55
 
56
- GEM_VERSION = '1.34.0'
56
+ GEM_VERSION = '1.35.0'
57
57
 
58
58
  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.34.0
4
+ version: 1.35.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: 2022-10-25 00:00:00.000000000 Z
11
+ date: 2023-01-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core