Typed dictionaries
Index > CodeGuruReviewer > Typed dictionaries
Auto-generated documentation for CodeGuruReviewer type annotations stubs module mypy-boto3-codeguru-reviewer.
KMSKeyDetailsTypeDef
Usage Example
from mypy_boto3_codeguru_reviewer.type_defs import KMSKeyDetailsTypeDef
def get_value() -> KMSKeyDetailsTypeDef:
return {
"KMSKeyId": ...,
}
Definition
class KMSKeyDetailsTypeDef(TypedDict):
KMSKeyId: NotRequired[str],
EncryptionOption: NotRequired[EncryptionOptionType], # (1)
ResponseMetadataTypeDef
Usage Example
from mypy_boto3_codeguru_reviewer.type_defs import ResponseMetadataTypeDef
def get_value() -> ResponseMetadataTypeDef:
return {
"RequestId": ...,
"HostId": ...,
"HTTPStatusCode": ...,
"HTTPHeaders": ...,
"RetryAttempts": ...,
}
Definition
class ResponseMetadataTypeDef(TypedDict):
RequestId: str,
HostId: str,
HTTPStatusCode: int,
HTTPHeaders: Dict[str, str],
RetryAttempts: int,
BranchDiffSourceCodeTypeTypeDef
Usage Example
from mypy_boto3_codeguru_reviewer.type_defs import BranchDiffSourceCodeTypeTypeDef
def get_value() -> BranchDiffSourceCodeTypeTypeDef:
return {
"SourceBranchName": ...,
"DestinationBranchName": ...,
}
Definition
class BranchDiffSourceCodeTypeTypeDef(TypedDict):
SourceBranchName: str,
DestinationBranchName: str,
CodeArtifactsTypeDef
Usage Example
from mypy_boto3_codeguru_reviewer.type_defs import CodeArtifactsTypeDef
def get_value() -> CodeArtifactsTypeDef:
return {
"SourceCodeArtifactsObjectKey": ...,
}
Definition
class CodeArtifactsTypeDef(TypedDict):
SourceCodeArtifactsObjectKey: str,
BuildArtifactsObjectKey: NotRequired[str],
CodeCommitRepositoryTypeDef
Usage Example
from mypy_boto3_codeguru_reviewer.type_defs import CodeCommitRepositoryTypeDef
def get_value() -> CodeCommitRepositoryTypeDef:
return {
"Name": ...,
}
MetricsSummaryTypeDef
Usage Example
from mypy_boto3_codeguru_reviewer.type_defs import MetricsSummaryTypeDef
def get_value() -> MetricsSummaryTypeDef:
return {
"MeteredLinesOfCodeCount": ...,
}
Definition
class MetricsSummaryTypeDef(TypedDict):
MeteredLinesOfCodeCount: NotRequired[int],
SuppressedLinesOfCodeCount: NotRequired[int],
FindingsCount: NotRequired[int],
MetricsTypeDef
Usage Example
from mypy_boto3_codeguru_reviewer.type_defs import MetricsTypeDef
def get_value() -> MetricsTypeDef:
return {
"MeteredLinesOfCodeCount": ...,
}
Definition
class MetricsTypeDef(TypedDict):
MeteredLinesOfCodeCount: NotRequired[int],
SuppressedLinesOfCodeCount: NotRequired[int],
FindingsCount: NotRequired[int],
CommitDiffSourceCodeTypeTypeDef
Usage Example
from mypy_boto3_codeguru_reviewer.type_defs import CommitDiffSourceCodeTypeTypeDef
def get_value() -> CommitDiffSourceCodeTypeTypeDef:
return {
"SourceCommit": ...,
}
Definition
class CommitDiffSourceCodeTypeTypeDef(TypedDict):
SourceCommit: NotRequired[str],
DestinationCommit: NotRequired[str],
MergeBaseCommit: NotRequired[str],
WaiterConfigTypeDef
Usage Example
from mypy_boto3_codeguru_reviewer.type_defs import WaiterConfigTypeDef
def get_value() -> WaiterConfigTypeDef:
return {
"Delay": ...,
}
Definition
class WaiterConfigTypeDef(TypedDict):
Delay: NotRequired[int],
MaxAttempts: NotRequired[int],
DescribeCodeReviewRequestRequestTypeDef
Usage Example
from mypy_boto3_codeguru_reviewer.type_defs import DescribeCodeReviewRequestRequestTypeDef
def get_value() -> DescribeCodeReviewRequestRequestTypeDef:
return {
"CodeReviewArn": ...,
}
DescribeRecommendationFeedbackRequestRequestTypeDef
Usage Example
from mypy_boto3_codeguru_reviewer.type_defs import DescribeRecommendationFeedbackRequestRequestTypeDef
def get_value() -> DescribeRecommendationFeedbackRequestRequestTypeDef:
return {
"CodeReviewArn": ...,
"RecommendationId": ...,
}
Definition
class DescribeRecommendationFeedbackRequestRequestTypeDef(TypedDict):
CodeReviewArn: str,
RecommendationId: str,
UserId: NotRequired[str],
RecommendationFeedbackTypeDef
Usage Example
from mypy_boto3_codeguru_reviewer.type_defs import RecommendationFeedbackTypeDef
def get_value() -> RecommendationFeedbackTypeDef:
return {
"CodeReviewArn": ...,
}
Definition
class RecommendationFeedbackTypeDef(TypedDict):
CodeReviewArn: NotRequired[str],
RecommendationId: NotRequired[str],
Reactions: NotRequired[List[ReactionType]], # (1)
UserId: NotRequired[str],
CreatedTimeStamp: NotRequired[datetime],
LastUpdatedTimeStamp: NotRequired[datetime],
- See ReactionType
DescribeRepositoryAssociationRequestRequestTypeDef
Usage Example
from mypy_boto3_codeguru_reviewer.type_defs import DescribeRepositoryAssociationRequestRequestTypeDef
def get_value() -> DescribeRepositoryAssociationRequestRequestTypeDef:
return {
"AssociationArn": ...,
}
DisassociateRepositoryRequestRequestTypeDef
Usage Example
from mypy_boto3_codeguru_reviewer.type_defs import DisassociateRepositoryRequestRequestTypeDef
def get_value() -> DisassociateRepositoryRequestRequestTypeDef:
return {
"AssociationArn": ...,
}
EventInfoTypeDef
Usage Example
from mypy_boto3_codeguru_reviewer.type_defs import EventInfoTypeDef
def get_value() -> EventInfoTypeDef:
return {
"Name": ...,
}
ListCodeReviewsRequestRequestTypeDef
Usage Example
from mypy_boto3_codeguru_reviewer.type_defs import ListCodeReviewsRequestRequestTypeDef
def get_value() -> ListCodeReviewsRequestRequestTypeDef:
return {
"Type": ...,
}
Definition
class ListCodeReviewsRequestRequestTypeDef(TypedDict):
Type: TypeType, # (1)
ProviderTypes: NotRequired[Sequence[ProviderTypeType]], # (2)
States: NotRequired[Sequence[JobStateType]], # (3)
RepositoryNames: NotRequired[Sequence[str]],
MaxResults: NotRequired[int],
NextToken: NotRequired[str],
- See TypeType
- See ProviderTypeType
- See JobStateType
ListRecommendationFeedbackRequestRequestTypeDef
Usage Example
from mypy_boto3_codeguru_reviewer.type_defs import ListRecommendationFeedbackRequestRequestTypeDef
def get_value() -> ListRecommendationFeedbackRequestRequestTypeDef:
return {
"CodeReviewArn": ...,
}
Definition
class ListRecommendationFeedbackRequestRequestTypeDef(TypedDict):
CodeReviewArn: str,
NextToken: NotRequired[str],
MaxResults: NotRequired[int],
UserIds: NotRequired[Sequence[str]],
RecommendationIds: NotRequired[Sequence[str]],
RecommendationFeedbackSummaryTypeDef
Usage Example
from mypy_boto3_codeguru_reviewer.type_defs import RecommendationFeedbackSummaryTypeDef
def get_value() -> RecommendationFeedbackSummaryTypeDef:
return {
"RecommendationId": ...,
}
Definition
class RecommendationFeedbackSummaryTypeDef(TypedDict):
RecommendationId: NotRequired[str],
Reactions: NotRequired[List[ReactionType]], # (1)
UserId: NotRequired[str],
- See ReactionType
ListRecommendationsRequestRequestTypeDef
Usage Example
from mypy_boto3_codeguru_reviewer.type_defs import ListRecommendationsRequestRequestTypeDef
def get_value() -> ListRecommendationsRequestRequestTypeDef:
return {
"CodeReviewArn": ...,
}
Definition
class ListRecommendationsRequestRequestTypeDef(TypedDict):
CodeReviewArn: str,
NextToken: NotRequired[str],
MaxResults: NotRequired[int],
PaginatorConfigTypeDef
Usage Example
from mypy_boto3_codeguru_reviewer.type_defs import PaginatorConfigTypeDef
def get_value() -> PaginatorConfigTypeDef:
return {
"MaxItems": ...,
}
Definition
class PaginatorConfigTypeDef(TypedDict):
MaxItems: NotRequired[int],
PageSize: NotRequired[int],
StartingToken: NotRequired[str],
ListRepositoryAssociationsRequestRequestTypeDef
Usage Example
from mypy_boto3_codeguru_reviewer.type_defs import ListRepositoryAssociationsRequestRequestTypeDef
def get_value() -> ListRepositoryAssociationsRequestRequestTypeDef:
return {
"ProviderTypes": ...,
}
Definition
class ListRepositoryAssociationsRequestRequestTypeDef(TypedDict):
ProviderTypes: NotRequired[Sequence[ProviderTypeType]], # (1)
States: NotRequired[Sequence[RepositoryAssociationStateType]], # (2)
Names: NotRequired[Sequence[str]],
Owners: NotRequired[Sequence[str]],
MaxResults: NotRequired[int],
NextToken: NotRequired[str],
RepositoryAssociationSummaryTypeDef
Usage Example
from mypy_boto3_codeguru_reviewer.type_defs import RepositoryAssociationSummaryTypeDef
def get_value() -> RepositoryAssociationSummaryTypeDef:
return {
"AssociationArn": ...,
}
Definition
class RepositoryAssociationSummaryTypeDef(TypedDict):
AssociationArn: NotRequired[str],
ConnectionArn: NotRequired[str],
LastUpdatedTimeStamp: NotRequired[datetime],
AssociationId: NotRequired[str],
Name: NotRequired[str],
Owner: NotRequired[str],
ProviderType: NotRequired[ProviderTypeType], # (1)
State: NotRequired[RepositoryAssociationStateType], # (2)
ListTagsForResourceRequestRequestTypeDef
Usage Example
from mypy_boto3_codeguru_reviewer.type_defs import ListTagsForResourceRequestRequestTypeDef
def get_value() -> ListTagsForResourceRequestRequestTypeDef:
return {
"resourceArn": ...,
}
PutRecommendationFeedbackRequestRequestTypeDef
Usage Example
from mypy_boto3_codeguru_reviewer.type_defs import PutRecommendationFeedbackRequestRequestTypeDef
def get_value() -> PutRecommendationFeedbackRequestRequestTypeDef:
return {
"CodeReviewArn": ...,
"RecommendationId": ...,
"Reactions": ...,
}
Definition
class PutRecommendationFeedbackRequestRequestTypeDef(TypedDict):
CodeReviewArn: str,
RecommendationId: str,
Reactions: Sequence[ReactionType], # (1)
- See ReactionType
RuleMetadataTypeDef
Usage Example
from mypy_boto3_codeguru_reviewer.type_defs import RuleMetadataTypeDef
def get_value() -> RuleMetadataTypeDef:
return {
"RuleId": ...,
}
Definition
class RuleMetadataTypeDef(TypedDict):
RuleId: NotRequired[str],
RuleName: NotRequired[str],
ShortDescription: NotRequired[str],
LongDescription: NotRequired[str],
RuleTags: NotRequired[List[str]],
RepositoryHeadSourceCodeTypeTypeDef
Usage Example
from mypy_boto3_codeguru_reviewer.type_defs import RepositoryHeadSourceCodeTypeTypeDef
def get_value() -> RepositoryHeadSourceCodeTypeTypeDef:
return {
"BranchName": ...,
}
S3RepositoryTypeDef
Usage Example
from mypy_boto3_codeguru_reviewer.type_defs import S3RepositoryTypeDef
def get_value() -> S3RepositoryTypeDef:
return {
"Name": ...,
"BucketName": ...,
}
ThirdPartySourceRepositoryTypeDef
Usage Example
from mypy_boto3_codeguru_reviewer.type_defs import ThirdPartySourceRepositoryTypeDef
def get_value() -> ThirdPartySourceRepositoryTypeDef:
return {
"Name": ...,
"ConnectionArn": ...,
"Owner": ...,
}
Definition
class ThirdPartySourceRepositoryTypeDef(TypedDict):
Name: str,
ConnectionArn: str,
Owner: str,
TagResourceRequestRequestTypeDef
Usage Example
from mypy_boto3_codeguru_reviewer.type_defs import TagResourceRequestRequestTypeDef
def get_value() -> TagResourceRequestRequestTypeDef:
return {
"resourceArn": ...,
"Tags": ...,
}
Definition
class TagResourceRequestRequestTypeDef(TypedDict):
resourceArn: str,
Tags: Mapping[str, str],
UntagResourceRequestRequestTypeDef
Usage Example
from mypy_boto3_codeguru_reviewer.type_defs import UntagResourceRequestRequestTypeDef
def get_value() -> UntagResourceRequestRequestTypeDef:
return {
"resourceArn": ...,
"TagKeys": ...,
}
Definition
class UntagResourceRequestRequestTypeDef(TypedDict):
resourceArn: str,
TagKeys: Sequence[str],
ListTagsForResourceResponseTypeDef
Usage Example
from mypy_boto3_codeguru_reviewer.type_defs import ListTagsForResourceResponseTypeDef
def get_value() -> ListTagsForResourceResponseTypeDef:
return {
"Tags": ...,
"ResponseMetadata": ...,
}
Definition
class ListTagsForResourceResponseTypeDef(TypedDict):
Tags: Dict[str, str],
ResponseMetadata: ResponseMetadataTypeDef, # (1)
S3RepositoryDetailsTypeDef
Usage Example
from mypy_boto3_codeguru_reviewer.type_defs import S3RepositoryDetailsTypeDef
def get_value() -> S3RepositoryDetailsTypeDef:
return {
"BucketName": ...,
}
Definition
class S3RepositoryDetailsTypeDef(TypedDict):
BucketName: NotRequired[str],
CodeArtifacts: NotRequired[CodeArtifactsTypeDef], # (1)
DescribeCodeReviewRequestCodeReviewCompletedWaitTypeDef
Usage Example
from mypy_boto3_codeguru_reviewer.type_defs import DescribeCodeReviewRequestCodeReviewCompletedWaitTypeDef
def get_value() -> DescribeCodeReviewRequestCodeReviewCompletedWaitTypeDef:
return {
"CodeReviewArn": ...,
}
Definition
class DescribeCodeReviewRequestCodeReviewCompletedWaitTypeDef(TypedDict):
CodeReviewArn: str,
WaiterConfig: NotRequired[WaiterConfigTypeDef], # (1)
DescribeRepositoryAssociationRequestRepositoryAssociationSucceededWaitTypeDef
Usage Example
from mypy_boto3_codeguru_reviewer.type_defs import DescribeRepositoryAssociationRequestRepositoryAssociationSucceededWaitTypeDef
def get_value() -> DescribeRepositoryAssociationRequestRepositoryAssociationSucceededWaitTypeDef:
return {
"AssociationArn": ...,
}
Definition
class DescribeRepositoryAssociationRequestRepositoryAssociationSucceededWaitTypeDef(TypedDict):
AssociationArn: str,
WaiterConfig: NotRequired[WaiterConfigTypeDef], # (1)
DescribeRecommendationFeedbackResponseTypeDef
Usage Example
from mypy_boto3_codeguru_reviewer.type_defs import DescribeRecommendationFeedbackResponseTypeDef
def get_value() -> DescribeRecommendationFeedbackResponseTypeDef:
return {
"RecommendationFeedback": ...,
"ResponseMetadata": ...,
}
Definition
class DescribeRecommendationFeedbackResponseTypeDef(TypedDict):
RecommendationFeedback: RecommendationFeedbackTypeDef, # (1)
ResponseMetadata: ResponseMetadataTypeDef, # (2)
RequestMetadataTypeDef
Usage Example
from mypy_boto3_codeguru_reviewer.type_defs import RequestMetadataTypeDef
def get_value() -> RequestMetadataTypeDef:
return {
"RequestId": ...,
}
Definition
class RequestMetadataTypeDef(TypedDict):
RequestId: NotRequired[str],
Requester: NotRequired[str],
EventInfo: NotRequired[EventInfoTypeDef], # (1)
VendorName: NotRequired[VendorNameType], # (2)
- See EventInfoTypeDef
- See VendorNameType
ListRecommendationFeedbackResponseTypeDef
Usage Example
from mypy_boto3_codeguru_reviewer.type_defs import ListRecommendationFeedbackResponseTypeDef
def get_value() -> ListRecommendationFeedbackResponseTypeDef:
return {
"RecommendationFeedbackSummaries": ...,
"NextToken": ...,
"ResponseMetadata": ...,
}
Definition
class ListRecommendationFeedbackResponseTypeDef(TypedDict):
RecommendationFeedbackSummaries: List[RecommendationFeedbackSummaryTypeDef], # (1)
NextToken: str,
ResponseMetadata: ResponseMetadataTypeDef, # (2)
ListRepositoryAssociationsRequestListRepositoryAssociationsPaginateTypeDef
Usage Example
from mypy_boto3_codeguru_reviewer.type_defs import ListRepositoryAssociationsRequestListRepositoryAssociationsPaginateTypeDef
def get_value() -> ListRepositoryAssociationsRequestListRepositoryAssociationsPaginateTypeDef:
return {
"ProviderTypes": ...,
}
Definition
class ListRepositoryAssociationsRequestListRepositoryAssociationsPaginateTypeDef(TypedDict):
ProviderTypes: NotRequired[Sequence[ProviderTypeType]], # (1)
States: NotRequired[Sequence[RepositoryAssociationStateType]], # (2)
Names: NotRequired[Sequence[str]],
Owners: NotRequired[Sequence[str]],
PaginationConfig: NotRequired[PaginatorConfigTypeDef], # (3)
ListRepositoryAssociationsResponseTypeDef
Usage Example
from mypy_boto3_codeguru_reviewer.type_defs import ListRepositoryAssociationsResponseTypeDef
def get_value() -> ListRepositoryAssociationsResponseTypeDef:
return {
"RepositoryAssociationSummaries": ...,
"NextToken": ...,
"ResponseMetadata": ...,
}
Definition
class ListRepositoryAssociationsResponseTypeDef(TypedDict):
RepositoryAssociationSummaries: List[RepositoryAssociationSummaryTypeDef], # (1)
NextToken: str,
ResponseMetadata: ResponseMetadataTypeDef, # (2)
RecommendationSummaryTypeDef
Usage Example
from mypy_boto3_codeguru_reviewer.type_defs import RecommendationSummaryTypeDef
def get_value() -> RecommendationSummaryTypeDef:
return {
"FilePath": ...,
}
Definition
class RecommendationSummaryTypeDef(TypedDict):
FilePath: NotRequired[str],
RecommendationId: NotRequired[str],
StartLine: NotRequired[int],
EndLine: NotRequired[int],
Description: NotRequired[str],
RecommendationCategory: NotRequired[RecommendationCategoryType], # (1)
RuleMetadata: NotRequired[RuleMetadataTypeDef], # (2)
Severity: NotRequired[SeverityType], # (3)
RepositoryTypeDef
Usage Example
from mypy_boto3_codeguru_reviewer.type_defs import RepositoryTypeDef
def get_value() -> RepositoryTypeDef:
return {
"CodeCommit": ...,
}
Definition
class RepositoryTypeDef(TypedDict):
CodeCommit: NotRequired[CodeCommitRepositoryTypeDef], # (1)
Bitbucket: NotRequired[ThirdPartySourceRepositoryTypeDef], # (2)
GitHubEnterpriseServer: NotRequired[ThirdPartySourceRepositoryTypeDef], # (2)
S3Bucket: NotRequired[S3RepositoryTypeDef], # (4)
- See CodeCommitRepositoryTypeDef
- See ThirdPartySourceRepositoryTypeDef
- See ThirdPartySourceRepositoryTypeDef
- See S3RepositoryTypeDef
RepositoryAssociationTypeDef
Usage Example
from mypy_boto3_codeguru_reviewer.type_defs import RepositoryAssociationTypeDef
def get_value() -> RepositoryAssociationTypeDef:
return {
"AssociationId": ...,
}
Definition
class RepositoryAssociationTypeDef(TypedDict):
AssociationId: NotRequired[str],
AssociationArn: NotRequired[str],
ConnectionArn: NotRequired[str],
Name: NotRequired[str],
Owner: NotRequired[str],
ProviderType: NotRequired[ProviderTypeType], # (1)
State: NotRequired[RepositoryAssociationStateType], # (2)
StateReason: NotRequired[str],
LastUpdatedTimeStamp: NotRequired[datetime],
CreatedTimeStamp: NotRequired[datetime],
KMSKeyDetails: NotRequired[KMSKeyDetailsTypeDef], # (3)
S3RepositoryDetails: NotRequired[S3RepositoryDetailsTypeDef], # (4)
- See ProviderTypeType
- See RepositoryAssociationStateType
- See KMSKeyDetailsTypeDef
- See S3RepositoryDetailsTypeDef
S3BucketRepositoryTypeDef
Usage Example
from mypy_boto3_codeguru_reviewer.type_defs import S3BucketRepositoryTypeDef
def get_value() -> S3BucketRepositoryTypeDef:
return {
"Name": ...,
}
Definition
class S3BucketRepositoryTypeDef(TypedDict):
Name: str,
Details: NotRequired[S3RepositoryDetailsTypeDef], # (1)
ListRecommendationsResponseTypeDef
Usage Example
from mypy_boto3_codeguru_reviewer.type_defs import ListRecommendationsResponseTypeDef
def get_value() -> ListRecommendationsResponseTypeDef:
return {
"RecommendationSummaries": ...,
"NextToken": ...,
"ResponseMetadata": ...,
}
Definition
class ListRecommendationsResponseTypeDef(TypedDict):
RecommendationSummaries: List[RecommendationSummaryTypeDef], # (1)
NextToken: str,
ResponseMetadata: ResponseMetadataTypeDef, # (2)
AssociateRepositoryRequestRequestTypeDef
Usage Example
from mypy_boto3_codeguru_reviewer.type_defs import AssociateRepositoryRequestRequestTypeDef
def get_value() -> AssociateRepositoryRequestRequestTypeDef:
return {
"Repository": ...,
}
Definition
class AssociateRepositoryRequestRequestTypeDef(TypedDict):
Repository: RepositoryTypeDef, # (1)
ClientRequestToken: NotRequired[str],
Tags: NotRequired[Mapping[str, str]],
KMSKeyDetails: NotRequired[KMSKeyDetailsTypeDef], # (2)
AssociateRepositoryResponseTypeDef
Usage Example
from mypy_boto3_codeguru_reviewer.type_defs import AssociateRepositoryResponseTypeDef
def get_value() -> AssociateRepositoryResponseTypeDef:
return {
"RepositoryAssociation": ...,
"Tags": ...,
"ResponseMetadata": ...,
}
Definition
class AssociateRepositoryResponseTypeDef(TypedDict):
RepositoryAssociation: RepositoryAssociationTypeDef, # (1)
Tags: Dict[str, str],
ResponseMetadata: ResponseMetadataTypeDef, # (2)
DescribeRepositoryAssociationResponseTypeDef
Usage Example
from mypy_boto3_codeguru_reviewer.type_defs import DescribeRepositoryAssociationResponseTypeDef
def get_value() -> DescribeRepositoryAssociationResponseTypeDef:
return {
"RepositoryAssociation": ...,
"Tags": ...,
"ResponseMetadata": ...,
}
Definition
class DescribeRepositoryAssociationResponseTypeDef(TypedDict):
RepositoryAssociation: RepositoryAssociationTypeDef, # (1)
Tags: Dict[str, str],
ResponseMetadata: ResponseMetadataTypeDef, # (2)
DisassociateRepositoryResponseTypeDef
Usage Example
from mypy_boto3_codeguru_reviewer.type_defs import DisassociateRepositoryResponseTypeDef
def get_value() -> DisassociateRepositoryResponseTypeDef:
return {
"RepositoryAssociation": ...,
"Tags": ...,
"ResponseMetadata": ...,
}
Definition
class DisassociateRepositoryResponseTypeDef(TypedDict):
RepositoryAssociation: RepositoryAssociationTypeDef, # (1)
Tags: Dict[str, str],
ResponseMetadata: ResponseMetadataTypeDef, # (2)
SourceCodeTypeTypeDef
Usage Example
from mypy_boto3_codeguru_reviewer.type_defs import SourceCodeTypeTypeDef
def get_value() -> SourceCodeTypeTypeDef:
return {
"CommitDiff": ...,
}
Definition
class SourceCodeTypeTypeDef(TypedDict):
CommitDiff: NotRequired[CommitDiffSourceCodeTypeTypeDef], # (1)
RepositoryHead: NotRequired[RepositoryHeadSourceCodeTypeTypeDef], # (2)
BranchDiff: NotRequired[BranchDiffSourceCodeTypeTypeDef], # (3)
S3BucketRepository: NotRequired[S3BucketRepositoryTypeDef], # (4)
RequestMetadata: NotRequired[RequestMetadataTypeDef], # (5)
- See CommitDiffSourceCodeTypeTypeDef
- See RepositoryHeadSourceCodeTypeTypeDef
- See BranchDiffSourceCodeTypeTypeDef
- See S3BucketRepositoryTypeDef
- See RequestMetadataTypeDef
CodeReviewSummaryTypeDef
Usage Example
from mypy_boto3_codeguru_reviewer.type_defs import CodeReviewSummaryTypeDef
def get_value() -> CodeReviewSummaryTypeDef:
return {
"Name": ...,
}
Definition
class CodeReviewSummaryTypeDef(TypedDict):
Name: NotRequired[str],
CodeReviewArn: NotRequired[str],
RepositoryName: NotRequired[str],
Owner: NotRequired[str],
ProviderType: NotRequired[ProviderTypeType], # (1)
State: NotRequired[JobStateType], # (2)
CreatedTimeStamp: NotRequired[datetime],
LastUpdatedTimeStamp: NotRequired[datetime],
Type: NotRequired[TypeType], # (3)
PullRequestId: NotRequired[str],
MetricsSummary: NotRequired[MetricsSummaryTypeDef], # (4)
SourceCodeType: NotRequired[SourceCodeTypeTypeDef], # (5)
- See ProviderTypeType
- See JobStateType
- See TypeType
- See MetricsSummaryTypeDef
- See SourceCodeTypeTypeDef
CodeReviewTypeDef
Usage Example
from mypy_boto3_codeguru_reviewer.type_defs import CodeReviewTypeDef
def get_value() -> CodeReviewTypeDef:
return {
"Name": ...,
}
Definition
class CodeReviewTypeDef(TypedDict):
Name: NotRequired[str],
CodeReviewArn: NotRequired[str],
RepositoryName: NotRequired[str],
Owner: NotRequired[str],
ProviderType: NotRequired[ProviderTypeType], # (1)
State: NotRequired[JobStateType], # (2)
StateReason: NotRequired[str],
CreatedTimeStamp: NotRequired[datetime],
LastUpdatedTimeStamp: NotRequired[datetime],
Type: NotRequired[TypeType], # (3)
PullRequestId: NotRequired[str],
SourceCodeType: NotRequired[SourceCodeTypeTypeDef], # (4)
AssociationArn: NotRequired[str],
Metrics: NotRequired[MetricsTypeDef], # (5)
AnalysisTypes: NotRequired[List[AnalysisTypeType]], # (6)
ConfigFileState: NotRequired[ConfigFileStateType], # (7)
- See ProviderTypeType
- See JobStateType
- See TypeType
- See SourceCodeTypeTypeDef
- See MetricsTypeDef
- See AnalysisTypeType
- See ConfigFileStateType
RepositoryAnalysisTypeDef
Usage Example
from mypy_boto3_codeguru_reviewer.type_defs import RepositoryAnalysisTypeDef
def get_value() -> RepositoryAnalysisTypeDef:
return {
"RepositoryHead": ...,
}
Definition
class RepositoryAnalysisTypeDef(TypedDict):
RepositoryHead: NotRequired[RepositoryHeadSourceCodeTypeTypeDef], # (1)
SourceCodeType: NotRequired[SourceCodeTypeTypeDef], # (2)
ListCodeReviewsResponseTypeDef
Usage Example
from mypy_boto3_codeguru_reviewer.type_defs import ListCodeReviewsResponseTypeDef
def get_value() -> ListCodeReviewsResponseTypeDef:
return {
"CodeReviewSummaries": ...,
"NextToken": ...,
"ResponseMetadata": ...,
}
Definition
class ListCodeReviewsResponseTypeDef(TypedDict):
CodeReviewSummaries: List[CodeReviewSummaryTypeDef], # (1)
NextToken: str,
ResponseMetadata: ResponseMetadataTypeDef, # (2)
CreateCodeReviewResponseTypeDef
Usage Example
from mypy_boto3_codeguru_reviewer.type_defs import CreateCodeReviewResponseTypeDef
def get_value() -> CreateCodeReviewResponseTypeDef:
return {
"CodeReview": ...,
"ResponseMetadata": ...,
}
Definition
class CreateCodeReviewResponseTypeDef(TypedDict):
CodeReview: CodeReviewTypeDef, # (1)
ResponseMetadata: ResponseMetadataTypeDef, # (2)
DescribeCodeReviewResponseTypeDef
Usage Example
from mypy_boto3_codeguru_reviewer.type_defs import DescribeCodeReviewResponseTypeDef
def get_value() -> DescribeCodeReviewResponseTypeDef:
return {
"CodeReview": ...,
"ResponseMetadata": ...,
}
Definition
class DescribeCodeReviewResponseTypeDef(TypedDict):
CodeReview: CodeReviewTypeDef, # (1)
ResponseMetadata: ResponseMetadataTypeDef, # (2)
CodeReviewTypeTypeDef
Usage Example
from mypy_boto3_codeguru_reviewer.type_defs import CodeReviewTypeTypeDef
def get_value() -> CodeReviewTypeTypeDef:
return {
"RepositoryAnalysis": ...,
}
Definition
class CodeReviewTypeTypeDef(TypedDict):
RepositoryAnalysis: RepositoryAnalysisTypeDef, # (1)
AnalysisTypes: NotRequired[Sequence[AnalysisTypeType]], # (2)
CreateCodeReviewRequestRequestTypeDef
Usage Example
from mypy_boto3_codeguru_reviewer.type_defs import CreateCodeReviewRequestRequestTypeDef
def get_value() -> CreateCodeReviewRequestRequestTypeDef:
return {
"Name": ...,
"RepositoryAssociationArn": ...,
"Type": ...,
}