CodeStarconnectionsClient#
Index > CodeStarconnections > CodeStarconnectionsClient
Auto-generated documentation for CodeStarconnections type annotations stubs module mypy-boto3-codestar-connections.
CodeStarconnectionsClient#
Type annotations and code completion for boto3.client("codestar-connections")
.
boto3 documentation
# CodeStarconnectionsClient usage example
from boto3.session import Session
from mypy_boto3_codestar_connections.client import CodeStarconnectionsClient
def get_codestar-connections_client() -> CodeStarconnectionsClient:
return Session().client("codestar-connections")
Exceptions#
boto3
client exceptions are generated in runtime.
This class provides code completion for boto3.client("codestar-connections").exceptions
structure.
# Exceptions.exceptions usage example
client = boto3.client("codestar-connections")
try:
do_something(client)
except (
client.exceptions.AccessDeniedException,
client.exceptions.ClientError,
client.exceptions.ConcurrentModificationException,
client.exceptions.ConditionalCheckFailedException,
client.exceptions.ConflictException,
client.exceptions.InternalServerException,
client.exceptions.InvalidInputException,
client.exceptions.LimitExceededException,
client.exceptions.ResourceAlreadyExistsException,
client.exceptions.ResourceNotFoundException,
client.exceptions.ResourceUnavailableException,
client.exceptions.RetryLatestCommitFailedException,
client.exceptions.SyncBlockerDoesNotExistException,
client.exceptions.SyncConfigurationStillExistsException,
client.exceptions.ThrottlingException,
client.exceptions.UnsupportedOperationException,
client.exceptions.UnsupportedProviderTypeException,
client.exceptions.UpdateOutOfSyncException,
) as e:
print(e)
# Exceptions.exceptions type checking example
from mypy_boto3_codestar_connections.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("codestar-connections").can_paginate
method.
boto3 documentation
# can_paginate method definition
def can_paginate(
self,
operation_name: str,
) -> bool:
...
close#
Closes underlying endpoint connections.
Type annotations and code completion for boto3.client("codestar-connections").close
method.
boto3 documentation
# close method definition
def close(
self,
) -> None:
...
create_connection#
Creates a connection that can then be given to other Amazon Web Services services like CodePipeline so that it can access third-party code repositories.
Type annotations and code completion for boto3.client("codestar-connections").create_connection
method.
boto3 documentation
# create_connection method definition
def create_connection(
self,
*,
ConnectionName: str,
ProviderType: ProviderTypeType = ..., # (1)
Tags: Sequence[TagTypeDef] = ..., # (2)
HostArn: str = ...,
) -> CreateConnectionOutputTypeDef: # (3)
...
- See ProviderTypeType
- See TagTypeDef
- See CreateConnectionOutputTypeDef
# create_connection method usage example with argument unpacking
kwargs: CreateConnectionInputRequestTypeDef = { # (1)
"ConnectionName": ...,
}
parent.create_connection(**kwargs)
create_host#
Creates a resource that represents the infrastructure where a third-party provider is installed.
Type annotations and code completion for boto3.client("codestar-connections").create_host
method.
boto3 documentation
# create_host method definition
def create_host(
self,
*,
Name: str,
ProviderType: ProviderTypeType, # (1)
ProviderEndpoint: str,
VpcConfiguration: Union[VpcConfigurationTypeDef, VpcConfigurationOutputTypeDef] = ..., # (2)
Tags: Sequence[TagTypeDef] = ..., # (3)
) -> CreateHostOutputTypeDef: # (4)
...
- See ProviderTypeType
- See VpcConfigurationTypeDef VpcConfigurationOutputTypeDef
- See TagTypeDef
- See CreateHostOutputTypeDef
# create_host method usage example with argument unpacking
kwargs: CreateHostInputRequestTypeDef = { # (1)
"Name": ...,
"ProviderType": ...,
"ProviderEndpoint": ...,
}
parent.create_host(**kwargs)
create_repository_link#
Creates a link to a specified external Git repository.
Type annotations and code completion for boto3.client("codestar-connections").create_repository_link
method.
boto3 documentation
# create_repository_link method definition
def create_repository_link(
self,
*,
ConnectionArn: str,
OwnerId: str,
RepositoryName: str,
EncryptionKeyArn: str = ...,
Tags: Sequence[TagTypeDef] = ..., # (1)
) -> CreateRepositoryLinkOutputTypeDef: # (2)
...
# create_repository_link method usage example with argument unpacking
kwargs: CreateRepositoryLinkInputRequestTypeDef = { # (1)
"ConnectionArn": ...,
"OwnerId": ...,
"RepositoryName": ...,
}
parent.create_repository_link(**kwargs)
create_sync_configuration#
Creates a sync configuration which allows Amazon Web Services to sync content from a Git repository to update a specified Amazon Web Services resource.
Type annotations and code completion for boto3.client("codestar-connections").create_sync_configuration
method.
boto3 documentation
# create_sync_configuration method definition
def create_sync_configuration(
self,
*,
Branch: str,
ConfigFile: str,
RepositoryLinkId: str,
ResourceName: str,
RoleArn: str,
SyncType: SyncConfigurationTypeType, # (1)
PublishDeploymentStatus: PublishDeploymentStatusType = ..., # (2)
TriggerResourceUpdateOn: TriggerResourceUpdateOnType = ..., # (3)
) -> CreateSyncConfigurationOutputTypeDef: # (4)
...
- See SyncConfigurationTypeType
- See PublishDeploymentStatusType
- See TriggerResourceUpdateOnType
- See CreateSyncConfigurationOutputTypeDef
# create_sync_configuration method usage example with argument unpacking
kwargs: CreateSyncConfigurationInputRequestTypeDef = { # (1)
"Branch": ...,
"ConfigFile": ...,
"RepositoryLinkId": ...,
"ResourceName": ...,
"RoleArn": ...,
"SyncType": ...,
}
parent.create_sync_configuration(**kwargs)
delete_connection#
The connection to be deleted.
Type annotations and code completion for boto3.client("codestar-connections").delete_connection
method.
boto3 documentation
# delete_connection method definition
def delete_connection(
self,
*,
ConnectionArn: str,
) -> Dict[str, Any]:
...
# delete_connection method usage example with argument unpacking
kwargs: DeleteConnectionInputRequestTypeDef = { # (1)
"ConnectionArn": ...,
}
parent.delete_connection(**kwargs)