Skip to content

Type definitions#

Index > CodeGuruReviewer > Type definitions

Auto-generated documentation for CodeGuruReviewer type annotations stubs module mypy-boto3-codeguru-reviewer.

KMSKeyDetailsTypeDef#

# KMSKeyDetailsTypeDef TypedDict usage example

from mypy_boto3_codeguru_reviewer.type_defs import KMSKeyDetailsTypeDef


def get_value() -> KMSKeyDetailsTypeDef:
    return {
        "KMSKeyId": ...,
    }


# KMSKeyDetailsTypeDef definition

class KMSKeyDetailsTypeDef(TypedDict):
    KMSKeyId: NotRequired[str],
    EncryptionOption: NotRequired[EncryptionOptionType],  # (1)
  1. See EncryptionOptionType

ResponseMetadataTypeDef#

# ResponseMetadataTypeDef TypedDict usage example

from mypy_boto3_codeguru_reviewer.type_defs import ResponseMetadataTypeDef


def get_value() -> ResponseMetadataTypeDef:
    return {
        "RequestId": ...,
    }


# ResponseMetadataTypeDef definition

class ResponseMetadataTypeDef(TypedDict):
    RequestId: str,
    HTTPStatusCode: int,
    HTTPHeaders: Dict[str, str],
    RetryAttempts: int,
    HostId: NotRequired[str],

BranchDiffSourceCodeTypeTypeDef#

# BranchDiffSourceCodeTypeTypeDef TypedDict usage example

from mypy_boto3_codeguru_reviewer.type_defs import BranchDiffSourceCodeTypeTypeDef


def get_value() -> BranchDiffSourceCodeTypeTypeDef:
    return {
        "SourceBranchName": ...,
    }


# BranchDiffSourceCodeTypeTypeDef definition

class BranchDiffSourceCodeTypeTypeDef(TypedDict):
    SourceBranchName: str,
    DestinationBranchName: str,

CodeArtifactsTypeDef#

# CodeArtifactsTypeDef TypedDict usage example

from mypy_boto3_codeguru_reviewer.type_defs import CodeArtifactsTypeDef


def get_value() -> CodeArtifactsTypeDef:
    return {
        "SourceCodeArtifactsObjectKey": ...,
    }


# CodeArtifactsTypeDef definition

class CodeArtifactsTypeDef(TypedDict):
    SourceCodeArtifactsObjectKey: str,
    BuildArtifactsObjectKey: NotRequired[str],

CodeCommitRepositoryTypeDef#

# CodeCommitRepositoryTypeDef TypedDict usage example

from mypy_boto3_codeguru_reviewer.type_defs import CodeCommitRepositoryTypeDef


def get_value() -> CodeCommitRepositoryTypeDef:
    return {
        "Name": ...,
    }


# CodeCommitRepositoryTypeDef definition

class CodeCommitRepositoryTypeDef(TypedDict):
    Name: str,

MetricsSummaryTypeDef#

# MetricsSummaryTypeDef TypedDict usage example

from mypy_boto3_codeguru_reviewer.type_defs import MetricsSummaryTypeDef


def get_value() -> MetricsSummaryTypeDef:
    return {
        "MeteredLinesOfCodeCount": ...,
    }


# MetricsSummaryTypeDef definition

class MetricsSummaryTypeDef(TypedDict):
    MeteredLinesOfCodeCount: NotRequired[int],
    SuppressedLinesOfCodeCount: NotRequired[int],
    FindingsCount: NotRequired[int],

MetricsTypeDef#

# MetricsTypeDef TypedDict usage example

from mypy_boto3_codeguru_reviewer.type_defs import MetricsTypeDef


def get_value() -> MetricsTypeDef:
    return {
        "MeteredLinesOfCodeCount": ...,
    }


# MetricsTypeDef definition

class MetricsTypeDef(TypedDict):
    MeteredLinesOfCodeCount: NotRequired[int],
    SuppressedLinesOfCodeCount: NotRequired[int],
    FindingsCount: NotRequired[int],

CommitDiffSourceCodeTypeTypeDef#

# CommitDiffSourceCodeTypeTypeDef TypedDict usage example

from mypy_boto3_codeguru_reviewer.type_defs import CommitDiffSourceCodeTypeTypeDef


def get_value() -> CommitDiffSourceCodeTypeTypeDef:
    return {
        "SourceCommit": ...,
    }


# CommitDiffSourceCodeTypeTypeDef definition

class CommitDiffSourceCodeTypeTypeDef(TypedDict):
    SourceCommit: NotRequired[str],
    DestinationCommit: NotRequired[str],
    MergeBaseCommit: NotRequired[str],

DescribeCodeReviewRequestTypeDef#

# DescribeCodeReviewRequestTypeDef TypedDict usage example

from mypy_boto3_codeguru_reviewer.type_defs import DescribeCodeReviewRequestTypeDef


def get_value() -> DescribeCodeReviewRequestTypeDef:
    return {
        "CodeReviewArn": ...,
    }


# DescribeCodeReviewRequestTypeDef definition

class DescribeCodeReviewRequestTypeDef(TypedDict):
    CodeReviewArn: str,

WaiterConfigTypeDef#

# WaiterConfigTypeDef TypedDict usage example

from mypy_boto3_codeguru_reviewer.type_defs import WaiterConfigTypeDef


def get_value() -> WaiterConfigTypeDef:
    return {
        "Delay": ...,
    }


# WaiterConfigTypeDef definition

class WaiterConfigTypeDef(TypedDict):
    Delay: NotRequired[int],
    MaxAttempts: NotRequired[int],

DescribeRecommendationFeedbackRequestTypeDef#

# DescribeRecommendationFeedbackRequestTypeDef TypedDict usage example

from mypy_boto3_codeguru_reviewer.type_defs import DescribeRecommendationFeedbackRequestTypeDef


def get_value() -> DescribeRecommendationFeedbackRequestTypeDef:
    return {
        "CodeReviewArn": ...,
    }


# DescribeRecommendationFeedbackRequestTypeDef definition

class DescribeRecommendationFeedbackRequestTypeDef(TypedDict):
    CodeReviewArn: str,
    RecommendationId: str,
    UserId: NotRequired[str],

RecommendationFeedbackTypeDef#

# RecommendationFeedbackTypeDef TypedDict usage example

from mypy_boto3_codeguru_reviewer.type_defs import RecommendationFeedbackTypeDef


def get_value() -> RecommendationFeedbackTypeDef:
    return {
        "CodeReviewArn": ...,
    }


# RecommendationFeedbackTypeDef definition

class RecommendationFeedbackTypeDef(TypedDict):
    CodeReviewArn: NotRequired[str],
    RecommendationId: NotRequired[str],
    Reactions: NotRequired[List[ReactionType]],  # (1)
    UserId: NotRequired[str],
    CreatedTimeStamp: NotRequired[datetime.datetime],
    LastUpdatedTimeStamp: NotRequired[datetime.datetime],
  1. See List[ReactionType]

DescribeRepositoryAssociationRequestTypeDef#

# DescribeRepositoryAssociationRequestTypeDef TypedDict usage example

from mypy_boto3_codeguru_reviewer.type_defs import DescribeRepositoryAssociationRequestTypeDef


def get_value() -> DescribeRepositoryAssociationRequestTypeDef:
    return {
        "AssociationArn": ...,
    }


# DescribeRepositoryAssociationRequestTypeDef definition

class DescribeRepositoryAssociationRequestTypeDef(TypedDict):
    AssociationArn: str,

DisassociateRepositoryRequestTypeDef#

# DisassociateRepositoryRequestTypeDef TypedDict usage example

from mypy_boto3_codeguru_reviewer.type_defs import DisassociateRepositoryRequestTypeDef


def get_value() -> DisassociateRepositoryRequestTypeDef:
    return {
        "AssociationArn": ...,
    }


# DisassociateRepositoryRequestTypeDef definition

class DisassociateRepositoryRequestTypeDef(TypedDict):
    AssociationArn: str,

EventInfoTypeDef#

# EventInfoTypeDef TypedDict usage example

from mypy_boto3_codeguru_reviewer.type_defs import EventInfoTypeDef


def get_value() -> EventInfoTypeDef:
    return {
        "Name": ...,
    }


# EventInfoTypeDef definition

class EventInfoTypeDef(TypedDict):
    Name: NotRequired[str],
    State: NotRequired[str],

ListCodeReviewsRequestTypeDef#

# ListCodeReviewsRequestTypeDef TypedDict usage example

from mypy_boto3_codeguru_reviewer.type_defs import ListCodeReviewsRequestTypeDef


def get_value() -> ListCodeReviewsRequestTypeDef:
    return {
        "Type": ...,
    }


# ListCodeReviewsRequestTypeDef definition

class ListCodeReviewsRequestTypeDef(TypedDict):
    Type: TypeType,  # (1)
    ProviderTypes: NotRequired[Sequence[ProviderTypeType]],  # (2)
    States: NotRequired[Sequence[JobStateType]],  # (3)
    RepositoryNames: NotRequired[Sequence[str]],
    MaxResults: NotRequired[int],
    NextToken: NotRequired[str],
  1. See TypeType
  2. See Sequence[ProviderTypeType]
  3. See Sequence[JobStateType]

ListRecommendationFeedbackRequestTypeDef#

# ListRecommendationFeedbackRequestTypeDef TypedDict usage example

from mypy_boto3_codeguru_reviewer.type_defs import ListRecommendationFeedbackRequestTypeDef


def get_value() -> ListRecommendationFeedbackRequestTypeDef:
    return {
        "CodeReviewArn": ...,
    }


# ListRecommendationFeedbackRequestTypeDef definition

class ListRecommendationFeedbackRequestTypeDef(TypedDict):
    CodeReviewArn: str,
    NextToken: NotRequired[str],
    MaxResults: NotRequired[int],
    UserIds: NotRequired[Sequence[str]],
    RecommendationIds: NotRequired[Sequence[str]],

RecommendationFeedbackSummaryTypeDef#

# RecommendationFeedbackSummaryTypeDef TypedDict usage example

from mypy_boto3_codeguru_reviewer.type_defs import RecommendationFeedbackSummaryTypeDef


def get_value() -> RecommendationFeedbackSummaryTypeDef:
    return {
        "RecommendationId": ...,
    }


# RecommendationFeedbackSummaryTypeDef definition

class RecommendationFeedbackSummaryTypeDef(TypedDict):
    RecommendationId: NotRequired[str],
    Reactions: NotRequired[List[ReactionType]],  # (1)
    UserId: NotRequired[str],
  1. See List[ReactionType]

ListRecommendationsRequestTypeDef#

# ListRecommendationsRequestTypeDef TypedDict usage example

from mypy_boto3_codeguru_reviewer.type_defs import ListRecommendationsRequestTypeDef


def get_value() -> ListRecommendationsRequestTypeDef:
    return {
        "CodeReviewArn": ...,
    }


# ListRecommendationsRequestTypeDef definition

class ListRecommendationsRequestTypeDef(TypedDict):
    CodeReviewArn: str,
    NextToken: NotRequired[str],
    MaxResults: NotRequired[int],

PaginatorConfigTypeDef#

# PaginatorConfigTypeDef TypedDict usage example

from mypy_boto3_codeguru_reviewer.type_defs import PaginatorConfigTypeDef


def get_value() -> PaginatorConfigTypeDef:
    return {
        "MaxItems": ...,
    }


# PaginatorConfigTypeDef definition

class PaginatorConfigTypeDef(TypedDict):
    MaxItems: NotRequired[int],
    PageSize: NotRequired[int],
    StartingToken: NotRequired[str],

ListRepositoryAssociationsRequestTypeDef#

# ListRepositoryAssociationsRequestTypeDef TypedDict usage example

from mypy_boto3_codeguru_reviewer.type_defs import ListRepositoryAssociationsRequestTypeDef


def get_value() -> ListRepositoryAssociationsRequestTypeDef:
    return {
        "ProviderTypes": ...,
    }


# ListRepositoryAssociationsRequestTypeDef definition

class ListRepositoryAssociationsRequestTypeDef(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],
  1. See Sequence[ProviderTypeType]
  2. See Sequence[RepositoryAssociationStateType]

RepositoryAssociationSummaryTypeDef#

# RepositoryAssociationSummaryTypeDef TypedDict usage example

from mypy_boto3_codeguru_reviewer.type_defs import RepositoryAssociationSummaryTypeDef


def get_value() -> RepositoryAssociationSummaryTypeDef:
    return {
        "AssociationArn": ...,
    }


# RepositoryAssociationSummaryTypeDef definition

class RepositoryAssociationSummaryTypeDef(TypedDict):
    AssociationArn: NotRequired[str],
    ConnectionArn: NotRequired[str],
    LastUpdatedTimeStamp: NotRequired[datetime.datetime],
    AssociationId: NotRequired[str],
    Name: NotRequired[str],
    Owner: NotRequired[str],
    ProviderType: NotRequired[ProviderTypeType],  # (1)
    State: NotRequired[RepositoryAssociationStateType],  # (2)
  1. See ProviderTypeType
  2. See RepositoryAssociationStateType

ListTagsForResourceRequestTypeDef#

# ListTagsForResourceRequestTypeDef TypedDict usage example

from mypy_boto3_codeguru_reviewer.type_defs import ListTagsForResourceRequestTypeDef


def get_value() -> ListTagsForResourceRequestTypeDef:
    return {
        "resourceArn": ...,
    }


# ListTagsForResourceRequestTypeDef definition

class ListTagsForResourceRequestTypeDef(TypedDict):
    resourceArn: str,

PutRecommendationFeedbackRequestTypeDef#

# PutRecommendationFeedbackRequestTypeDef TypedDict usage example

from mypy_boto3_codeguru_reviewer.type_defs import PutRecommendationFeedbackRequestTypeDef


def get_value() -> PutRecommendationFeedbackRequestTypeDef:
    return {
        "CodeReviewArn": ...,
    }


# PutRecommendationFeedbackRequestTypeDef definition

class PutRecommendationFeedbackRequestTypeDef(TypedDict):
    CodeReviewArn: str,
    RecommendationId: str,
    Reactions: Sequence[ReactionType],  # (1)
  1. See Sequence[ReactionType]

RuleMetadataTypeDef#

# RuleMetadataTypeDef TypedDict usage example

from mypy_boto3_codeguru_reviewer.type_defs import RuleMetadataTypeDef


def get_value() -> RuleMetadataTypeDef:
    return {
        "RuleId": ...,
    }


# RuleMetadataTypeDef definition

class RuleMetadataTypeDef(TypedDict):
    RuleId: NotRequired[str],
    RuleName: NotRequired[str],
    ShortDescription: NotRequired[str],
    LongDescription: NotRequired[str],
    RuleTags: NotRequired[List[str]],

RepositoryHeadSourceCodeTypeTypeDef#

# RepositoryHeadSourceCodeTypeTypeDef TypedDict usage example

from mypy_boto3_codeguru_reviewer.type_defs import RepositoryHeadSourceCodeTypeTypeDef


def get_value() -> RepositoryHeadSourceCodeTypeTypeDef:
    return {
        "BranchName": ...,
    }


# RepositoryHeadSourceCodeTypeTypeDef definition

class RepositoryHeadSourceCodeTypeTypeDef(TypedDict):
    BranchName: str,

S3RepositoryTypeDef#

# S3RepositoryTypeDef TypedDict usage example

from mypy_boto3_codeguru_reviewer.type_defs import S3RepositoryTypeDef


def get_value() -> S3RepositoryTypeDef:
    return {
        "Name": ...,
    }


# S3RepositoryTypeDef definition

class S3RepositoryTypeDef(TypedDict):
    Name: str,
    BucketName: str,

ThirdPartySourceRepositoryTypeDef#

# ThirdPartySourceRepositoryTypeDef TypedDict usage example

from mypy_boto3_codeguru_reviewer.type_defs import ThirdPartySourceRepositoryTypeDef


def get_value() -> ThirdPartySourceRepositoryTypeDef:
    return {
        "Name": ...,
    }


# ThirdPartySourceRepositoryTypeDef definition

class ThirdPartySourceRepositoryTypeDef(TypedDict):
    Name: str,
    ConnectionArn: str,
    Owner: str,

TagResourceRequestTypeDef#

# TagResourceRequestTypeDef TypedDict usage example

from mypy_boto3_codeguru_reviewer.type_defs import TagResourceRequestTypeDef


def get_value() -> TagResourceRequestTypeDef:
    return {
        "resourceArn": ...,
    }


# TagResourceRequestTypeDef definition

class TagResourceRequestTypeDef(TypedDict):
    resourceArn: str,
    Tags: Mapping[str, str],

UntagResourceRequestTypeDef#

# UntagResourceRequestTypeDef TypedDict usage example

from mypy_boto3_codeguru_reviewer.type_defs import UntagResourceRequestTypeDef


def get_value() -> UntagResourceRequestTypeDef:
    return {
        "resourceArn": ...,
    }


# UntagResourceRequestTypeDef definition

class UntagResourceRequestTypeDef(TypedDict):
    resourceArn: str,
    TagKeys: Sequence[str],

ListTagsForResourceResponseTypeDef#

# ListTagsForResourceResponseTypeDef TypedDict usage example

from mypy_boto3_codeguru_reviewer.type_defs import ListTagsForResourceResponseTypeDef


def get_value() -> ListTagsForResourceResponseTypeDef:
    return {
        "Tags": ...,
    }


# ListTagsForResourceResponseTypeDef definition

class ListTagsForResourceResponseTypeDef(TypedDict):
    Tags: Dict[str, str],
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

S3RepositoryDetailsTypeDef#

# S3RepositoryDetailsTypeDef TypedDict usage example

from mypy_boto3_codeguru_reviewer.type_defs import S3RepositoryDetailsTypeDef


def get_value() -> S3RepositoryDetailsTypeDef:
    return {
        "BucketName": ...,
    }


# S3RepositoryDetailsTypeDef definition

class S3RepositoryDetailsTypeDef(TypedDict):
    BucketName: NotRequired[str],
    CodeArtifacts: NotRequired[CodeArtifactsTypeDef],  # (1)
  1. See CodeArtifactsTypeDef

DescribeCodeReviewRequestWaitTypeDef#

# DescribeCodeReviewRequestWaitTypeDef TypedDict usage example

from mypy_boto3_codeguru_reviewer.type_defs import DescribeCodeReviewRequestWaitTypeDef


def get_value() -> DescribeCodeReviewRequestWaitTypeDef:
    return {
        "CodeReviewArn": ...,
    }


# DescribeCodeReviewRequestWaitTypeDef definition

class DescribeCodeReviewRequestWaitTypeDef(TypedDict):
    CodeReviewArn: str,
    WaiterConfig: NotRequired[WaiterConfigTypeDef],  # (1)
  1. See WaiterConfigTypeDef

DescribeRepositoryAssociationRequestWaitTypeDef#

# DescribeRepositoryAssociationRequestWaitTypeDef TypedDict usage example

from mypy_boto3_codeguru_reviewer.type_defs import DescribeRepositoryAssociationRequestWaitTypeDef


def get_value() -> DescribeRepositoryAssociationRequestWaitTypeDef:
    return {
        "AssociationArn": ...,
    }


# DescribeRepositoryAssociationRequestWaitTypeDef definition

class DescribeRepositoryAssociationRequestWaitTypeDef(TypedDict):
    AssociationArn: str,
    WaiterConfig: NotRequired[WaiterConfigTypeDef],  # (1)
  1. See WaiterConfigTypeDef

DescribeRecommendationFeedbackResponseTypeDef#

# DescribeRecommendationFeedbackResponseTypeDef TypedDict usage example

from mypy_boto3_codeguru_reviewer.type_defs import DescribeRecommendationFeedbackResponseTypeDef


def get_value() -> DescribeRecommendationFeedbackResponseTypeDef:
    return {
        "RecommendationFeedback": ...,
    }


# DescribeRecommendationFeedbackResponseTypeDef definition

class DescribeRecommendationFeedbackResponseTypeDef(TypedDict):
    RecommendationFeedback: RecommendationFeedbackTypeDef,  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See RecommendationFeedbackTypeDef
  2. See ResponseMetadataTypeDef

RequestMetadataTypeDef#

# RequestMetadataTypeDef TypedDict usage example

from mypy_boto3_codeguru_reviewer.type_defs import RequestMetadataTypeDef


def get_value() -> RequestMetadataTypeDef:
    return {
        "RequestId": ...,
    }


# RequestMetadataTypeDef definition

class RequestMetadataTypeDef(TypedDict):
    RequestId: NotRequired[str],
    Requester: NotRequired[str],
    EventInfo: NotRequired[EventInfoTypeDef],  # (1)
    VendorName: NotRequired[VendorNameType],  # (2)
  1. See EventInfoTypeDef
  2. See VendorNameType

ListRecommendationFeedbackResponseTypeDef#

# ListRecommendationFeedbackResponseTypeDef TypedDict usage example

from mypy_boto3_codeguru_reviewer.type_defs import ListRecommendationFeedbackResponseTypeDef


def get_value() -> ListRecommendationFeedbackResponseTypeDef:
    return {
        "RecommendationFeedbackSummaries": ...,
    }


# ListRecommendationFeedbackResponseTypeDef definition

class ListRecommendationFeedbackResponseTypeDef(TypedDict):
    RecommendationFeedbackSummaries: List[RecommendationFeedbackSummaryTypeDef],  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
    NextToken: NotRequired[str],
  1. See List[RecommendationFeedbackSummaryTypeDef]
  2. See ResponseMetadataTypeDef

ListRepositoryAssociationsRequestPaginateTypeDef#

# ListRepositoryAssociationsRequestPaginateTypeDef TypedDict usage example

from mypy_boto3_codeguru_reviewer.type_defs import ListRepositoryAssociationsRequestPaginateTypeDef


def get_value() -> ListRepositoryAssociationsRequestPaginateTypeDef:
    return {
        "ProviderTypes": ...,
    }


# ListRepositoryAssociationsRequestPaginateTypeDef definition

class ListRepositoryAssociationsRequestPaginateTypeDef(TypedDict):
    ProviderTypes: NotRequired[Sequence[ProviderTypeType]],  # (1)
    States: NotRequired[Sequence[RepositoryAssociationStateType]],  # (2)
    Names: NotRequired[Sequence[str]],
    Owners: NotRequired[Sequence[str]],
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (3)
  1. See Sequence[ProviderTypeType]
  2. See Sequence[RepositoryAssociationStateType]
  3. See PaginatorConfigTypeDef

ListRepositoryAssociationsResponseTypeDef#

# ListRepositoryAssociationsResponseTypeDef TypedDict usage example

from mypy_boto3_codeguru_reviewer.type_defs import ListRepositoryAssociationsResponseTypeDef


def get_value() -> ListRepositoryAssociationsResponseTypeDef:
    return {
        "RepositoryAssociationSummaries": ...,
    }


# ListRepositoryAssociationsResponseTypeDef definition

class ListRepositoryAssociationsResponseTypeDef(TypedDict):
    RepositoryAssociationSummaries: List[RepositoryAssociationSummaryTypeDef],  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
    NextToken: NotRequired[str],
  1. See List[RepositoryAssociationSummaryTypeDef]
  2. See ResponseMetadataTypeDef

RecommendationSummaryTypeDef#

# RecommendationSummaryTypeDef TypedDict usage example

from mypy_boto3_codeguru_reviewer.type_defs import RecommendationSummaryTypeDef


def get_value() -> RecommendationSummaryTypeDef:
    return {
        "FilePath": ...,
    }


# RecommendationSummaryTypeDef 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)
  1. See RecommendationCategoryType
  2. See RuleMetadataTypeDef
  3. See SeverityType

RepositoryTypeDef#

# RepositoryTypeDef TypedDict usage example

from mypy_boto3_codeguru_reviewer.type_defs import RepositoryTypeDef


def get_value() -> RepositoryTypeDef:
    return {
        "CodeCommit": ...,
    }


# RepositoryTypeDef definition

class RepositoryTypeDef(TypedDict):
    CodeCommit: NotRequired[CodeCommitRepositoryTypeDef],  # (1)
    Bitbucket: NotRequired[ThirdPartySourceRepositoryTypeDef],  # (2)
    GitHubEnterpriseServer: NotRequired[ThirdPartySourceRepositoryTypeDef],  # (2)
    S3Bucket: NotRequired[S3RepositoryTypeDef],  # (4)
  1. See CodeCommitRepositoryTypeDef
  2. See ThirdPartySourceRepositoryTypeDef
  3. See ThirdPartySourceRepositoryTypeDef
  4. See S3RepositoryTypeDef

RepositoryAssociationTypeDef#

# RepositoryAssociationTypeDef TypedDict usage example

from mypy_boto3_codeguru_reviewer.type_defs import RepositoryAssociationTypeDef


def get_value() -> RepositoryAssociationTypeDef:
    return {
        "AssociationId": ...,
    }


# RepositoryAssociationTypeDef 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.datetime],
    CreatedTimeStamp: NotRequired[datetime.datetime],
    KMSKeyDetails: NotRequired[KMSKeyDetailsTypeDef],  # (3)
    S3RepositoryDetails: NotRequired[S3RepositoryDetailsTypeDef],  # (4)
  1. See ProviderTypeType
  2. See RepositoryAssociationStateType
  3. See KMSKeyDetailsTypeDef
  4. See S3RepositoryDetailsTypeDef

S3BucketRepositoryTypeDef#

# S3BucketRepositoryTypeDef TypedDict usage example

from mypy_boto3_codeguru_reviewer.type_defs import S3BucketRepositoryTypeDef


def get_value() -> S3BucketRepositoryTypeDef:
    return {
        "Name": ...,
    }


# S3BucketRepositoryTypeDef definition

class S3BucketRepositoryTypeDef(TypedDict):
    Name: str,
    Details: NotRequired[S3RepositoryDetailsTypeDef],  # (1)
  1. See S3RepositoryDetailsTypeDef

ListRecommendationsResponseTypeDef#

# ListRecommendationsResponseTypeDef TypedDict usage example

from mypy_boto3_codeguru_reviewer.type_defs import ListRecommendationsResponseTypeDef


def get_value() -> ListRecommendationsResponseTypeDef:
    return {
        "RecommendationSummaries": ...,
    }


# ListRecommendationsResponseTypeDef definition

class ListRecommendationsResponseTypeDef(TypedDict):
    RecommendationSummaries: List[RecommendationSummaryTypeDef],  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
    NextToken: NotRequired[str],
  1. See List[RecommendationSummaryTypeDef]
  2. See ResponseMetadataTypeDef

AssociateRepositoryRequestTypeDef#

# AssociateRepositoryRequestTypeDef TypedDict usage example

from mypy_boto3_codeguru_reviewer.type_defs import AssociateRepositoryRequestTypeDef


def get_value() -> AssociateRepositoryRequestTypeDef:
    return {
        "Repository": ...,
    }


# AssociateRepositoryRequestTypeDef definition

class AssociateRepositoryRequestTypeDef(TypedDict):
    Repository: RepositoryTypeDef,  # (1)
    ClientRequestToken: NotRequired[str],
    Tags: NotRequired[Mapping[str, str]],
    KMSKeyDetails: NotRequired[KMSKeyDetailsTypeDef],  # (2)
  1. See RepositoryTypeDef
  2. See KMSKeyDetailsTypeDef

AssociateRepositoryResponseTypeDef#

# AssociateRepositoryResponseTypeDef TypedDict usage example

from mypy_boto3_codeguru_reviewer.type_defs import AssociateRepositoryResponseTypeDef


def get_value() -> AssociateRepositoryResponseTypeDef:
    return {
        "RepositoryAssociation": ...,
    }


# AssociateRepositoryResponseTypeDef definition

class AssociateRepositoryResponseTypeDef(TypedDict):
    RepositoryAssociation: RepositoryAssociationTypeDef,  # (1)
    Tags: Dict[str, str],
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See RepositoryAssociationTypeDef
  2. See ResponseMetadataTypeDef

DescribeRepositoryAssociationResponseTypeDef#

# DescribeRepositoryAssociationResponseTypeDef TypedDict usage example

from mypy_boto3_codeguru_reviewer.type_defs import DescribeRepositoryAssociationResponseTypeDef


def get_value() -> DescribeRepositoryAssociationResponseTypeDef:
    return {
        "RepositoryAssociation": ...,
    }


# DescribeRepositoryAssociationResponseTypeDef definition

class DescribeRepositoryAssociationResponseTypeDef(TypedDict):
    RepositoryAssociation: RepositoryAssociationTypeDef,  # (1)
    Tags: Dict[str, str],
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See RepositoryAssociationTypeDef
  2. See ResponseMetadataTypeDef

DisassociateRepositoryResponseTypeDef#

# DisassociateRepositoryResponseTypeDef TypedDict usage example

from mypy_boto3_codeguru_reviewer.type_defs import DisassociateRepositoryResponseTypeDef


def get_value() -> DisassociateRepositoryResponseTypeDef:
    return {
        "RepositoryAssociation": ...,
    }


# DisassociateRepositoryResponseTypeDef definition

class DisassociateRepositoryResponseTypeDef(TypedDict):
    RepositoryAssociation: RepositoryAssociationTypeDef,  # (1)
    Tags: Dict[str, str],
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See RepositoryAssociationTypeDef
  2. See ResponseMetadataTypeDef

SourceCodeTypeTypeDef#

# SourceCodeTypeTypeDef TypedDict usage example

from mypy_boto3_codeguru_reviewer.type_defs import SourceCodeTypeTypeDef


def get_value() -> SourceCodeTypeTypeDef:
    return {
        "CommitDiff": ...,
    }


# SourceCodeTypeTypeDef definition

class SourceCodeTypeTypeDef(TypedDict):
    CommitDiff: NotRequired[CommitDiffSourceCodeTypeTypeDef],  # (1)
    RepositoryHead: NotRequired[RepositoryHeadSourceCodeTypeTypeDef],  # (2)
    BranchDiff: NotRequired[BranchDiffSourceCodeTypeTypeDef],  # (3)
    S3BucketRepository: NotRequired[S3BucketRepositoryTypeDef],  # (4)
    RequestMetadata: NotRequired[RequestMetadataTypeDef],  # (5)
  1. See CommitDiffSourceCodeTypeTypeDef
  2. See RepositoryHeadSourceCodeTypeTypeDef
  3. See BranchDiffSourceCodeTypeTypeDef
  4. See S3BucketRepositoryTypeDef
  5. See RequestMetadataTypeDef

CodeReviewSummaryTypeDef#

# CodeReviewSummaryTypeDef TypedDict usage example

from mypy_boto3_codeguru_reviewer.type_defs import CodeReviewSummaryTypeDef


def get_value() -> CodeReviewSummaryTypeDef:
    return {
        "Name": ...,
    }


# CodeReviewSummaryTypeDef 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.datetime],
    LastUpdatedTimeStamp: NotRequired[datetime.datetime],
    Type: NotRequired[TypeType],  # (3)
    PullRequestId: NotRequired[str],
    MetricsSummary: NotRequired[MetricsSummaryTypeDef],  # (4)
    SourceCodeType: NotRequired[SourceCodeTypeTypeDef],  # (5)
  1. See ProviderTypeType
  2. See JobStateType
  3. See TypeType
  4. See MetricsSummaryTypeDef
  5. See SourceCodeTypeTypeDef

CodeReviewTypeDef#

# CodeReviewTypeDef TypedDict usage example

from mypy_boto3_codeguru_reviewer.type_defs import CodeReviewTypeDef


def get_value() -> CodeReviewTypeDef:
    return {
        "Name": ...,
    }


# CodeReviewTypeDef 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.datetime],
    LastUpdatedTimeStamp: NotRequired[datetime.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)
  1. See ProviderTypeType
  2. See JobStateType
  3. See TypeType
  4. See SourceCodeTypeTypeDef
  5. See MetricsTypeDef
  6. See List[AnalysisTypeType]
  7. See ConfigFileStateType

RepositoryAnalysisTypeDef#

# RepositoryAnalysisTypeDef TypedDict usage example

from mypy_boto3_codeguru_reviewer.type_defs import RepositoryAnalysisTypeDef


def get_value() -> RepositoryAnalysisTypeDef:
    return {
        "RepositoryHead": ...,
    }


# RepositoryAnalysisTypeDef definition

class RepositoryAnalysisTypeDef(TypedDict):
    RepositoryHead: NotRequired[RepositoryHeadSourceCodeTypeTypeDef],  # (1)
    SourceCodeType: NotRequired[SourceCodeTypeTypeDef],  # (2)
  1. See RepositoryHeadSourceCodeTypeTypeDef
  2. See SourceCodeTypeTypeDef

ListCodeReviewsResponseTypeDef#

# ListCodeReviewsResponseTypeDef TypedDict usage example

from mypy_boto3_codeguru_reviewer.type_defs import ListCodeReviewsResponseTypeDef


def get_value() -> ListCodeReviewsResponseTypeDef:
    return {
        "CodeReviewSummaries": ...,
    }


# ListCodeReviewsResponseTypeDef definition

class ListCodeReviewsResponseTypeDef(TypedDict):
    CodeReviewSummaries: List[CodeReviewSummaryTypeDef],  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
    NextToken: NotRequired[str],
  1. See List[CodeReviewSummaryTypeDef]
  2. See ResponseMetadataTypeDef

CreateCodeReviewResponseTypeDef#

# CreateCodeReviewResponseTypeDef TypedDict usage example

from mypy_boto3_codeguru_reviewer.type_defs import CreateCodeReviewResponseTypeDef


def get_value() -> CreateCodeReviewResponseTypeDef:
    return {
        "CodeReview": ...,
    }


# CreateCodeReviewResponseTypeDef definition

class CreateCodeReviewResponseTypeDef(TypedDict):
    CodeReview: CodeReviewTypeDef,  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See CodeReviewTypeDef
  2. See ResponseMetadataTypeDef

DescribeCodeReviewResponseTypeDef#

# DescribeCodeReviewResponseTypeDef TypedDict usage example

from mypy_boto3_codeguru_reviewer.type_defs import DescribeCodeReviewResponseTypeDef


def get_value() -> DescribeCodeReviewResponseTypeDef:
    return {
        "CodeReview": ...,
    }


# DescribeCodeReviewResponseTypeDef definition

class DescribeCodeReviewResponseTypeDef(TypedDict):
    CodeReview: CodeReviewTypeDef,  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See CodeReviewTypeDef
  2. See ResponseMetadataTypeDef

CodeReviewTypeTypeDef#

# CodeReviewTypeTypeDef TypedDict usage example

from mypy_boto3_codeguru_reviewer.type_defs import CodeReviewTypeTypeDef


def get_value() -> CodeReviewTypeTypeDef:
    return {
        "RepositoryAnalysis": ...,
    }


# CodeReviewTypeTypeDef definition

class CodeReviewTypeTypeDef(TypedDict):
    RepositoryAnalysis: RepositoryAnalysisTypeDef,  # (1)
    AnalysisTypes: NotRequired[Sequence[AnalysisTypeType]],  # (2)
  1. See RepositoryAnalysisTypeDef
  2. See Sequence[AnalysisTypeType]

CreateCodeReviewRequestTypeDef#

# CreateCodeReviewRequestTypeDef TypedDict usage example

from mypy_boto3_codeguru_reviewer.type_defs import CreateCodeReviewRequestTypeDef


def get_value() -> CreateCodeReviewRequestTypeDef:
    return {
        "Name": ...,
    }


# CreateCodeReviewRequestTypeDef definition

class CreateCodeReviewRequestTypeDef(TypedDict):
    Name: str,
    RepositoryAssociationArn: str,
    Type: CodeReviewTypeTypeDef,  # (1)
    ClientRequestToken: NotRequired[str],
  1. See CodeReviewTypeTypeDef