Skip to content

CodeCatalystClient

Index > CodeCatalyst > CodeCatalystClient

Auto-generated documentation for CodeCatalyst type annotations stubs module mypy-boto3-codecatalyst.

CodeCatalystClient

Type annotations and code completion for boto3.client("codecatalyst"). boto3 documentation

Usage example
from boto3.session import Session
from mypy_boto3_codecatalyst.client import CodeCatalystClient

def get_codecatalyst_client() -> CodeCatalystClient:
    return Session().client("codecatalyst")

Exceptions

boto3 client exceptions are generated in runtime. This class provides code completion for boto3.client("codecatalyst").exceptions structure.

Usage example
client = boto3.client("codecatalyst")

try:
    do_something(client)
except (
    client.AccessDeniedException,
    client.ClientError,
    client.ConflictException,
    client.ResourceNotFoundException,
    client.ServiceQuotaExceededException,
    client.ThrottlingException,
    client.ValidationException,
) as e:
    print(e)
Type checking example
from mypy_boto3_codecatalyst.client import Exceptions

def handle_error(exc: Exceptions.AccessDeniedException) -> None:
    ...

Methods

can_paginate

Check if an operation can be paginated.

Type annotations and code completion for boto3.client("codecatalyst").can_paginate method. boto3 documentation

Method definition
def can_paginate(
    self,
    operation_name: str,
) -> bool:
    ...

close

Closes underlying endpoint connections.

Type annotations and code completion for boto3.client("codecatalyst").close method. boto3 documentation

Method definition
def close(
    self,
) -> None:
    ...

create_access_token

Creates a personal access token (PAT) for the current user.

Type annotations and code completion for boto3.client("codecatalyst").create_access_token method. boto3 documentation

Method definition
def create_access_token(
    self,
    *,
    name: str,
    expiresTime: Union[datetime, str] = ...,
) -> CreateAccessTokenResponseTypeDef:  # (1)
    ...
  1. See CreateAccessTokenResponseTypeDef
Usage example with kwargs
kwargs: CreateAccessTokenRequestRequestTypeDef = {  # (1)
    "name": ...,
}

parent.create_access_token(**kwargs)
  1. See CreateAccessTokenRequestRequestTypeDef

create_dev_environment

Creates a Dev Environment in Amazon CodeCatalyst, a cloud-based development Dev Environment that you can use to quickly work on the code stored in the source repositories of your project.

Type annotations and code completion for boto3.client("codecatalyst").create_dev_environment method. boto3 documentation

Method definition
def create_dev_environment(
    self,
    *,
    spaceName: str,
    projectName: str,
    instanceType: InstanceTypeType,  # (1)
    persistentStorage: PersistentStorageConfigurationTypeDef,  # (2)
    repositories: Sequence[RepositoryInputTypeDef] = ...,  # (3)
    clientToken: str = ...,
    alias: str = ...,
    ides: Sequence[IdeConfigurationTypeDef] = ...,  # (4)
    inactivityTimeoutMinutes: int = ...,
) -> CreateDevEnvironmentResponseTypeDef:  # (5)
    ...
  1. See InstanceTypeType
  2. See PersistentStorageConfigurationTypeDef
  3. See RepositoryInputTypeDef
  4. See IdeConfigurationTypeDef
  5. See CreateDevEnvironmentResponseTypeDef
Usage example with kwargs
kwargs: CreateDevEnvironmentRequestRequestTypeDef = {  # (1)
    "spaceName": ...,
    "projectName": ...,
    "instanceType": ...,
    "persistentStorage": ...,
}

parent.create_dev_environment(**kwargs)
  1. See CreateDevEnvironmentRequestRequestTypeDef

create_project

Creates a project in a specified space.

Type annotations and code completion for boto3.client("codecatalyst").create_project method. boto3 documentation

Method definition
def create_project(
    self,
    *,
    spaceName: str,
    displayName: str,
    description: str = ...,
) -> CreateProjectResponseTypeDef:  # (1)
    ...
  1. See CreateProjectResponseTypeDef
Usage example with kwargs
kwargs: CreateProjectRequestRequestTypeDef = {  # (1)
    "spaceName": ...,
    "displayName": ...,
}

parent.create_project(**kwargs)
  1. See CreateProjectRequestRequestTypeDef

create_source_repository_branch

Creates a branch in a specified source repository in Amazon CodeCatalyst.

Type annotations and code completion for boto3.client("codecatalyst").create_source_repository_branch method. boto3 documentation

Method definition
def create_source_repository_branch(
    self,
    *,
    spaceName: str,
    projectName: str,
    sourceRepositoryName: str,
    name: str,
    headCommitId: str = ...,
) -> CreateSourceRepositoryBranchResponseTypeDef:  # (1)
    ...
  1. See CreateSourceRepositoryBranchResponseTypeDef
Usage example with kwargs
kwargs: CreateSourceRepositoryBranchRequestRequestTypeDef = {  # (1)
    "spaceName": ...,
    "projectName": ...,
    "sourceRepositoryName": ...,
    "name": ...,
}

parent.create_source_repository_branch(**kwargs)
  1. See CreateSourceRepositoryBranchRequestRequestTypeDef

delete_access_token

Deletes a specified personal access token (PAT).

Type annotations and code completion for boto3.client("codecatalyst").delete_access_token method. boto3 documentation

Method definition
def delete_access_token(
    self,
    *,
    id: str,
) -> Dict[str, Any]:
    ...
Usage example with kwargs
kwargs: DeleteAccessTokenRequestRequestTypeDef = {  # (1)
    "id": ...,
}

parent.delete_access_token(**kwargs)
  1. See DeleteAccessTokenRequestRequestTypeDef

delete_dev_environment

Deletes a Dev Environment.

Type annotations and code completion for boto3.client("codecatalyst").delete_dev_environment method. boto3 documentation

Method definition
def delete_dev_environment(
    self,
    *,
    spaceName: str,
    projectName: str,
    id: str,
) -> DeleteDevEnvironmentResponseTypeDef:  # (1)
    ...
  1. See DeleteDevEnvironmentResponseTypeDef
Usage example with kwargs
kwargs: DeleteDevEnvironmentRequestRequestTypeDef = {  # (1)
    "spaceName": ...,
    "projectName": ...,
    "id": ...,
}

parent.delete_dev_environment(**kwargs)
  1. See DeleteDevEnvironmentRequestRequestTypeDef

generate_presigned_url

Generate a presigned url given a client, its method, and arguments.

Type annotations and code completion for boto3.client("codecatalyst").generate_presigned_url method. boto3 documentation

Method definition
def generate_presigned_url(
    self,
    ClientMethod: str,
    Params: Mapping[str, Any] = ...,
    ExpiresIn: int = 3600,
    HttpMethod: str = ...,
) -> str:
    ...

get_dev_environment

Returns information about a Dev Environment for a source repository in a project.

Type annotations and code completion for boto3.client("codecatalyst").get_dev_environment method. boto3 documentation

Method definition
def get_dev_environment(
    self,
    *,
    spaceName: str,
    projectName: str,
    id: str,
) -> GetDevEnvironmentResponseTypeDef:  # (1)
    ...
  1. See GetDevEnvironmentResponseTypeDef
Usage example with kwargs
kwargs: GetDevEnvironmentRequestRequestTypeDef = {  # (1)
    "spaceName": ...,
    "projectName": ...,
    "id": ...,
}

parent.get_dev_environment(**kwargs)
  1. See GetDevEnvironmentRequestRequestTypeDef

get_project

Returns information about a project.

Type annotations and code completion for boto3.client("codecatalyst").get_project method. boto3 documentation

Method definition
def get_project(
    self,
    *,
    spaceName: str,
    name: str,
) -> GetProjectResponseTypeDef:  # (1)
    ...
  1. See GetProjectResponseTypeDef
Usage example with kwargs
kwargs: GetProjectRequestRequestTypeDef = {  # (1)
    "spaceName": ...,
    "name": ...,
}

parent.get_project(**kwargs)
  1. See GetProjectRequestRequestTypeDef

get_source_repository_clone_urls

Returns information about the URLs that can be used with a Git client to clone a source repository.

Type annotations and code completion for boto3.client("codecatalyst").get_source_repository_clone_urls method. boto3 documentation

Method definition
def get_source_repository_clone_urls(
    self,
    *,
    spaceName: str,
    projectName: str,
    sourceRepositoryName: str,
) -> GetSourceRepositoryCloneUrlsResponseTypeDef:  # (1)
    ...
  1. See GetSourceRepositoryCloneUrlsResponseTypeDef
Usage example with kwargs
kwargs: GetSourceRepositoryCloneUrlsRequestRequestTypeDef = {  # (1)
    "spaceName": ...,
    "projectName": ...,
    "sourceRepositoryName": ...,
}

parent.get_source_repository_clone_urls(**kwargs)
  1. See GetSourceRepositoryCloneUrlsRequestRequestTypeDef

get_space

Returns information about an space.

Type annotations and code completion for boto3.client("codecatalyst").get_space method. boto3 documentation

Method definition
def get_space(
    self,
    *,
    name: str,
) -> GetSpaceResponseTypeDef:  # (1)
    ...
  1. See GetSpaceResponseTypeDef
Usage example with kwargs
kwargs: GetSpaceRequestRequestTypeDef = {  # (1)
    "name": ...,
}

parent.get_space(**kwargs)
  1. See GetSpaceRequestRequestTypeDef

get_subscription

Returns information about the Amazon Web Services account used for billing purposes and the billing plan for the space.

Type annotations and code completion for boto3.client("codecatalyst").get_subscription method. boto3 documentation

Method definition
def get_subscription(
    self,
    *,
    spaceName: str,
) -> GetSubscriptionResponseTypeDef:  # (1)
    ...
  1. See GetSubscriptionResponseTypeDef
Usage example with kwargs
kwargs: GetSubscriptionRequestRequestTypeDef = {  # (1)
    "spaceName": ...,
}

parent.get_subscription(**kwargs)
  1. See GetSubscriptionRequestRequestTypeDef

get_user_details

Returns information about a user.

Type annotations and code completion for boto3.client("codecatalyst").get_user_details method. boto3 documentation

Method definition
def get_user_details(
    self,
    *,
    id: str = ...,
    userName: str = ...,
) -> GetUserDetailsResponseTypeDef:  # (1)
    ...
  1. See GetUserDetailsResponseTypeDef
Usage example with kwargs
kwargs: GetUserDetailsRequestRequestTypeDef = {  # (1)
    "id": ...,
}

parent.get_user_details(**kwargs)
  1. See GetUserDetailsRequestRequestTypeDef

list_access_tokens

Lists all personal access tokens (PATs) associated with the user who calls the API.

Type annotations and code completion for boto3.client("codecatalyst").list_access_tokens method. boto3 documentation

Method definition
def list_access_tokens(
    self,
    *,
    maxResults: int = ...,
    nextToken: str = ...,
) -> ListAccessTokensResponseTypeDef:  # (1)
    ...
  1. See ListAccessTokensResponseTypeDef
Usage example with kwargs
kwargs: ListAccessTokensRequestRequestTypeDef = {  # (1)
    "maxResults": ...,
}

parent.list_access_tokens(**kwargs)
  1. See ListAccessTokensRequestRequestTypeDef

list_dev_environments

Retrives a list of Dev Environments in a project.

Type annotations and code completion for boto3.client("codecatalyst").list_dev_environments method. boto3 documentation

Method definition
def list_dev_environments(
    self,
    *,
    spaceName: str,
    projectName: str,
    filters: Sequence[FilterTypeDef] = ...,  # (1)
    nextToken: str = ...,
    maxResults: int = ...,
) -> ListDevEnvironmentsResponseTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See ListDevEnvironmentsResponseTypeDef
Usage example with kwargs
kwargs: ListDevEnvironmentsRequestRequestTypeDef = {  # (1)
    "spaceName": ...,
    "projectName": ...,
}

parent.list_dev_environments(**kwargs)
  1. See ListDevEnvironmentsRequestRequestTypeDef

list_event_logs

Retrieves a list of events that occurred during a specified time period in a space.

Type annotations and code completion for boto3.client("codecatalyst").list_event_logs method. boto3 documentation

Method definition
def list_event_logs(
    self,
    *,
    spaceName: str,
    startTime: Union[datetime, str],
    endTime: Union[datetime, str],
    eventName: str = ...,
    nextToken: str = ...,
    maxResults: int = ...,
) -> ListEventLogsResponseTypeDef:  # (1)
    ...
  1. See ListEventLogsResponseTypeDef
Usage example with kwargs
kwargs: ListEventLogsRequestRequestTypeDef = {  # (1)
    "spaceName": ...,
    "startTime": ...,
    "endTime": ...,
}

parent.list_event_logs(**kwargs)
  1. See ListEventLogsRequestRequestTypeDef

list_projects

Retrieves a list of projects.

Type annotations and code completion for boto3.client("codecatalyst").list_projects method. boto3 documentation

Method definition
def list_projects(
    self,
    *,
    spaceName: str,
    nextToken: str = ...,
    maxResults: int = ...,
    filters: Sequence[ProjectListFilterTypeDef] = ...,  # (1)
) -> ListProjectsResponseTypeDef:  # (2)
    ...
  1. See ProjectListFilterTypeDef
  2. See ListProjectsResponseTypeDef
Usage example with kwargs
kwargs: ListProjectsRequestRequestTypeDef = {  # (1)
    "spaceName": ...,
}

parent.list_projects(**kwargs)
  1. See ListProjectsRequestRequestTypeDef

list_source_repositories

Retrieves a list of source repositories in a project.

Type annotations and code completion for boto3.client("codecatalyst").list_source_repositories method. boto3 documentation

Method definition
def list_source_repositories(
    self,
    *,
    spaceName: str,
    projectName: str,
    nextToken: str = ...,
    maxResults: int = ...,
) -> ListSourceRepositoriesResponseTypeDef:  # (1)
    ...
  1. See ListSourceRepositoriesResponseTypeDef
Usage example with kwargs
kwargs: ListSourceRepositoriesRequestRequestTypeDef = {  # (1)
    "spaceName": ...,
    "projectName": ...,
}

parent.list_source_repositories(**kwargs)
  1. See ListSourceRepositoriesRequestRequestTypeDef

list_source_repository_branches

Retrieves a list of branches in a specified source repository.

Type annotations and code completion for boto3.client("codecatalyst").list_source_repository_branches method. boto3 documentation

Method definition
def list_source_repository_branches(
    self,
    *,
    spaceName: str,
    projectName: str,
    sourceRepositoryName: str,
    nextToken: str = ...,
    maxResults: int = ...,
) -> ListSourceRepositoryBranchesResponseTypeDef:  # (1)
    ...
  1. See ListSourceRepositoryBranchesResponseTypeDef
Usage example with kwargs
kwargs: ListSourceRepositoryBranchesRequestRequestTypeDef = {  # (1)
    "spaceName": ...,
    "projectName": ...,
    "sourceRepositoryName": ...,
}

parent.list_source_repository_branches(**kwargs)
  1. See ListSourceRepositoryBranchesRequestRequestTypeDef

list_spaces

Retrieves a list of spaces.

Type annotations and code completion for boto3.client("codecatalyst").list_spaces method. boto3 documentation

Method definition
def list_spaces(
    self,
    *,
    nextToken: str = ...,
) -> ListSpacesResponseTypeDef:  # (1)
    ...
  1. See ListSpacesResponseTypeDef
Usage example with kwargs
kwargs: ListSpacesRequestRequestTypeDef = {  # (1)
    "nextToken": ...,
}

parent.list_spaces(**kwargs)
  1. See ListSpacesRequestRequestTypeDef

start_dev_environment

Starts a specified Dev Environment and puts it into an active state.

Type annotations and code completion for boto3.client("codecatalyst").start_dev_environment method. boto3 documentation

Method definition
def start_dev_environment(
    self,
    *,
    spaceName: str,
    projectName: str,
    id: str,
    ides: Sequence[IdeConfigurationTypeDef] = ...,  # (1)
    instanceType: InstanceTypeType = ...,  # (2)
    inactivityTimeoutMinutes: int = ...,
) -> StartDevEnvironmentResponseTypeDef:  # (3)
    ...
  1. See IdeConfigurationTypeDef
  2. See InstanceTypeType
  3. See StartDevEnvironmentResponseTypeDef
Usage example with kwargs
kwargs: StartDevEnvironmentRequestRequestTypeDef = {  # (1)
    "spaceName": ...,
    "projectName": ...,
    "id": ...,
}

parent.start_dev_environment(**kwargs)
  1. See StartDevEnvironmentRequestRequestTypeDef

start_dev_environment_session

Starts a session for a specified Dev Environment.

Type annotations and code completion for boto3.client("codecatalyst").start_dev_environment_session method. boto3 documentation

Method definition
def start_dev_environment_session(
    self,
    *,
    spaceName: str,
    projectName: str,
    id: str,
    sessionConfiguration: DevEnvironmentSessionConfigurationTypeDef,  # (1)
) -> StartDevEnvironmentSessionResponseTypeDef:  # (2)
    ...
  1. See DevEnvironmentSessionConfigurationTypeDef
  2. See StartDevEnvironmentSessionResponseTypeDef
Usage example with kwargs
kwargs: StartDevEnvironmentSessionRequestRequestTypeDef = {  # (1)
    "spaceName": ...,
    "projectName": ...,
    "id": ...,
    "sessionConfiguration": ...,
}

parent.start_dev_environment_session(**kwargs)
  1. See StartDevEnvironmentSessionRequestRequestTypeDef

stop_dev_environment

Pauses a specified Dev Environment and places it in a non-running state.

Type annotations and code completion for boto3.client("codecatalyst").stop_dev_environment method. boto3 documentation

Method definition
def stop_dev_environment(
    self,
    *,
    spaceName: str,
    projectName: str,
    id: str,
) -> StopDevEnvironmentResponseTypeDef:  # (1)
    ...
  1. See StopDevEnvironmentResponseTypeDef
Usage example with kwargs
kwargs: StopDevEnvironmentRequestRequestTypeDef = {  # (1)
    "spaceName": ...,
    "projectName": ...,
    "id": ...,
}

parent.stop_dev_environment(**kwargs)
  1. See StopDevEnvironmentRequestRequestTypeDef

stop_dev_environment_session

Stops a session for a specified Dev Environment.

Type annotations and code completion for boto3.client("codecatalyst").stop_dev_environment_session method. boto3 documentation

Method definition
def stop_dev_environment_session(
    self,
    *,
    spaceName: str,
    projectName: str,
    id: str,
    sessionId: str,
) -> StopDevEnvironmentSessionResponseTypeDef:  # (1)
    ...
  1. See StopDevEnvironmentSessionResponseTypeDef
Usage example with kwargs
kwargs: StopDevEnvironmentSessionRequestRequestTypeDef = {  # (1)
    "spaceName": ...,
    "projectName": ...,
    "id": ...,
    "sessionId": ...,
}

parent.stop_dev_environment_session(**kwargs)
  1. See StopDevEnvironmentSessionRequestRequestTypeDef

update_dev_environment

Changes one or more values for a Dev Environment.

Type annotations and code completion for boto3.client("codecatalyst").update_dev_environment method. boto3 documentation

Method definition
def update_dev_environment(
    self,
    *,
    spaceName: str,
    projectName: str,
    id: str,
    alias: str = ...,
    ides: Sequence[IdeConfigurationTypeDef] = ...,  # (1)
    instanceType: InstanceTypeType = ...,  # (2)
    inactivityTimeoutMinutes: int = ...,
    clientToken: str = ...,
) -> UpdateDevEnvironmentResponseTypeDef:  # (3)
    ...
  1. See IdeConfigurationTypeDef
  2. See InstanceTypeType
  3. See UpdateDevEnvironmentResponseTypeDef
Usage example with kwargs
kwargs: UpdateDevEnvironmentRequestRequestTypeDef = {  # (1)
    "spaceName": ...,
    "projectName": ...,
    "id": ...,
}

parent.update_dev_environment(**kwargs)
  1. See UpdateDevEnvironmentRequestRequestTypeDef

verify_session

Verifies whether the calling user has a valid Amazon CodeCatalyst login and session.

Type annotations and code completion for boto3.client("codecatalyst").verify_session method. boto3 documentation

Method definition
def verify_session(
    self,
) -> VerifySessionResponseTypeDef:  # (1)
    ...
  1. See VerifySessionResponseTypeDef

get_paginator

Type annotations and code completion for boto3.client("codecatalyst").get_paginator method with overloads.