CodeConnectionsClient#
Index > CodeConnections > CodeConnectionsClient
Auto-generated documentation for CodeConnections type annotations stubs module mypy-boto3-codeconnections.
CodeConnectionsClient#
Type annotations and code completion for boto3.client("codeconnections")
.
boto3 documentation
# CodeConnectionsClient usage example
from boto3.session import Session
from mypy_boto3_codeconnections.client import CodeConnectionsClient
def get_codeconnections_client() -> CodeConnectionsClient:
return Session().client("codeconnections")
Exceptions#
boto3
client exceptions are generated in runtime.
This class provides code completion for boto3.client("codeconnections").exceptions
structure.
# Exceptions.exceptions usage example
client = boto3.client("codeconnections")
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_codeconnections.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("codeconnections").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("codeconnections").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("codeconnections").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("codeconnections").create_host
method.
boto3 documentation
# create_host method definition
def create_host(
self,
*,
Name: str,
ProviderType: ProviderTypeType, # (1)
ProviderEndpoint: str,
VpcConfiguration: VpcConfigurationTypeDef = ..., # (2)
Tags: Sequence[TagTypeDef] = ..., # (3)
) -> CreateHostOutputTypeDef: # (4)
...
- See ProviderTypeType
- See VpcConfigurationTypeDef
- 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("codeconnections").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("codeconnections").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)
PullRequestComment: PullRequestCommentType = ..., # (4)
) -> CreateSyncConfigurationOutputTypeDef: # (5)
...
- See SyncConfigurationTypeType
- See PublishDeploymentStatusType
- See TriggerResourceUpdateOnType
- See PullRequestCommentType
- 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("codeconnections").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)
delete_host#
The host to be deleted.
Type annotations and code completion for boto3.client("codeconnections").delete_host
method.
boto3 documentation
# delete_host method definition
def delete_host(
self,
*,
HostArn: str,
) -> Dict[str, Any]:
...
# delete_host method usage example with argument unpacking
kwargs: DeleteHostInputRequestTypeDef = { # (1)
"HostArn": ...,
}
parent.delete_host(**kwargs)
delete_repository_link#
Deletes the association between your connection and a specified external Git repository.
Type annotations and code completion for boto3.client("codeconnections").delete_repository_link
method.
boto3 documentation
# delete_repository_link method definition
def delete_repository_link(
self,
*,
RepositoryLinkId: str,
) -> Dict[str, Any]:
...
# delete_repository_link method usage example with argument unpacking
kwargs: DeleteRepositoryLinkInputRequestTypeDef = { # (1)
"RepositoryLinkId": ...,
}
parent.delete_repository_link(**kwargs)
delete_sync_configuration#
Deletes the sync configuration for a specified repository and connection.
Type annotations and code completion for boto3.client("codeconnections").delete_sync_configuration
method.
boto3 documentation
# delete_sync_configuration method definition
def delete_sync_configuration(
self,
*,
SyncType: SyncConfigurationTypeType, # (1)
ResourceName: str,
) -> Dict[str, Any]:
...
# delete_sync_configuration method usage example with argument unpacking
kwargs: DeleteSyncConfigurationInputRequestTypeDef = { # (1)
"SyncType": ...,
"ResourceName": ...,
}
parent.delete_sync_configuration(**kwargs)
generate_presigned_url#
Generate a presigned url given a client, its method, and arguments.
Type annotations and code completion for boto3.client("codeconnections").generate_presigned_url
method.
boto3 documentation
# generate_presigned_url method definition
def generate_presigned_url(
self,
ClientMethod: str,
Params: Mapping[str, Any] = ...,
ExpiresIn: int = 3600,
HttpMethod: str = ...,
) -> str:
...
get_connection#
Returns the connection ARN and details such as status, owner, and provider type.
Type annotations and code completion for boto3.client("codeconnections").get_connection
method.
boto3 documentation
# get_connection method definition
def get_connection(
self,
*,
ConnectionArn: str,
) -> GetConnectionOutputTypeDef: # (1)
...
# get_connection method usage example with argument unpacking
kwargs: GetConnectionInputRequestTypeDef = { # (1)
"ConnectionArn": ...,
}
parent.get_connection(**kwargs)
get_host#
Returns the host ARN and details such as status, provider type, endpoint, and, if applicable, the VPC configuration.
Type annotations and code completion for boto3.client("codeconnections").get_host
method.
boto3 documentation
# get_host method definition
def get_host(
self,
*,
HostArn: str,
) -> GetHostOutputTypeDef: # (1)
...
# get_host method usage example with argument unpacking
kwargs: GetHostInputRequestTypeDef = { # (1)
"HostArn": ...,
}
parent.get_host(**kwargs)
get_repository_link#
Returns details about a repository link.
Type annotations and code completion for boto3.client("codeconnections").get_repository_link
method.
boto3 documentation
# get_repository_link method definition
def get_repository_link(
self,
*,
RepositoryLinkId: str,
) -> GetRepositoryLinkOutputTypeDef: # (1)
...
# get_repository_link method usage example with argument unpacking
kwargs: GetRepositoryLinkInputRequestTypeDef = { # (1)
"RepositoryLinkId": ...,
}
parent.get_repository_link(**kwargs)
get_repository_sync_status#
Returns details about the sync status for a repository.
Type annotations and code completion for boto3.client("codeconnections").get_repository_sync_status
method.
boto3 documentation
# get_repository_sync_status method definition
def get_repository_sync_status(
self,
*,
Branch: str,
RepositoryLinkId: str,
SyncType: SyncConfigurationTypeType, # (1)
) -> GetRepositorySyncStatusOutputTypeDef: # (2)
...
# get_repository_sync_status method usage example with argument unpacking
kwargs: GetRepositorySyncStatusInputRequestTypeDef = { # (1)
"Branch": ...,
"RepositoryLinkId": ...,
"SyncType": ...,
}
parent.get_repository_sync_status(**kwargs)
get_resource_sync_status#
Returns the status of the sync with the Git repository for a specific Amazon Web Services resource.
Type annotations and code completion for boto3.client("codeconnections").get_resource_sync_status
method.
boto3 documentation
# get_resource_sync_status method definition
def get_resource_sync_status(
self,
*,
ResourceName: str,
SyncType: SyncConfigurationTypeType, # (1)
) -> GetResourceSyncStatusOutputTypeDef: # (2)
...
# get_resource_sync_status method usage example with argument unpacking
kwargs: GetResourceSyncStatusInputRequestTypeDef = { # (1)
"ResourceName": ...,
"SyncType": ...,
}
parent.get_resource_sync_status(**kwargs)
get_sync_blocker_summary#
Returns a list of the most recent sync blockers.
Type annotations and code completion for boto3.client("codeconnections").get_sync_blocker_summary
method.
boto3 documentation
# get_sync_blocker_summary method definition
def get_sync_blocker_summary(
self,
*,
SyncType: SyncConfigurationTypeType, # (1)
ResourceName: str,
) -> GetSyncBlockerSummaryOutputTypeDef: # (2)
...
# get_sync_blocker_summary method usage example with argument unpacking
kwargs: GetSyncBlockerSummaryInputRequestTypeDef = { # (1)
"SyncType": ...,
"ResourceName": ...,
}
parent.get_sync_blocker_summary(**kwargs)
get_sync_configuration#
Returns details about a sync configuration, including the sync type and resource name.
Type annotations and code completion for boto3.client("codeconnections").get_sync_configuration
method.
boto3 documentation
# get_sync_configuration method definition
def get_sync_configuration(
self,
*,
SyncType: SyncConfigurationTypeType, # (1)
ResourceName: str,
) -> GetSyncConfigurationOutputTypeDef: # (2)
...
# get_sync_configuration method usage example with argument unpacking
kwargs: GetSyncConfigurationInputRequestTypeDef = { # (1)
"SyncType": ...,
"ResourceName": ...,
}
parent.get_sync_configuration(**kwargs)
list_connections#
Lists the connections associated with your account.
Type annotations and code completion for boto3.client("codeconnections").list_connections
method.
boto3 documentation
# list_connections method definition
def list_connections(
self,
*,
ProviderTypeFilter: ProviderTypeType = ..., # (1)
HostArnFilter: str = ...,
MaxResults: int = ...,
NextToken: str = ...,
) -> ListConnectionsOutputTypeDef: # (2)
...
# list_connections method usage example with argument unpacking
kwargs: ListConnectionsInputRequestTypeDef = { # (1)
"ProviderTypeFilter": ...,
}
parent.list_connections(**kwargs)
list_hosts#
Lists the hosts associated with your account.
Type annotations and code completion for boto3.client("codeconnections").list_hosts
method.
boto3 documentation
# list_hosts method definition
def list_hosts(
self,
*,
MaxResults: int = ...,
NextToken: str = ...,
) -> ListHostsOutputTypeDef: # (1)
...
# list_hosts method usage example with argument unpacking
kwargs: ListHostsInputRequestTypeDef = { # (1)
"MaxResults": ...,
}
parent.list_hosts(**kwargs)
list_repository_links#
Lists the repository links created for connections in your account.
Type annotations and code completion for boto3.client("codeconnections").list_repository_links
method.
boto3 documentation
# list_repository_links method definition
def list_repository_links(
self,
*,
MaxResults: int = ...,
NextToken: str = ...,
) -> ListRepositoryLinksOutputTypeDef: # (1)
...
# list_repository_links method usage example with argument unpacking
kwargs: ListRepositoryLinksInputRequestTypeDef = { # (1)
"MaxResults": ...,
}
parent.list_repository_links(**kwargs)
list_repository_sync_definitions#
Lists the repository sync definitions for repository links in your account.
Type annotations and code completion for boto3.client("codeconnections").list_repository_sync_definitions
method.
boto3 documentation
# list_repository_sync_definitions method definition
def list_repository_sync_definitions(
self,
*,
RepositoryLinkId: str,
SyncType: SyncConfigurationTypeType, # (1)
) -> ListRepositorySyncDefinitionsOutputTypeDef: # (2)
...
# list_repository_sync_definitions method usage example with argument unpacking
kwargs: ListRepositorySyncDefinitionsInputRequestTypeDef = { # (1)
"RepositoryLinkId": ...,
"SyncType": ...,
}
parent.list_repository_sync_definitions(**kwargs)
list_sync_configurations#
Returns a list of sync configurations for a specified repository.
Type annotations and code completion for boto3.client("codeconnections").list_sync_configurations
method.
boto3 documentation
# list_sync_configurations method definition
def list_sync_configurations(
self,
*,
RepositoryLinkId: str,
SyncType: SyncConfigurationTypeType, # (1)
MaxResults: int = ...,
NextToken: str = ...,
) -> ListSyncConfigurationsOutputTypeDef: # (2)
...
# list_sync_configurations method usage example with argument unpacking
kwargs: ListSyncConfigurationsInputRequestTypeDef = { # (1)
"RepositoryLinkId": ...,
"SyncType": ...,
}
parent.list_sync_configurations(**kwargs)
list_tags_for_resource#
Gets the set of key-value pairs (metadata) that are used to manage the resource.
Type annotations and code completion for boto3.client("codeconnections").list_tags_for_resource
method.
boto3 documentation
# list_tags_for_resource method definition
def list_tags_for_resource(
self,
*,
ResourceArn: str,
) -> ListTagsForResourceOutputTypeDef: # (1)
...
# list_tags_for_resource method usage example with argument unpacking
kwargs: ListTagsForResourceInputRequestTypeDef = { # (1)
"ResourceArn": ...,
}
parent.list_tags_for_resource(**kwargs)
tag_resource#
Adds to or modifies the tags of the given resource.
Type annotations and code completion for boto3.client("codeconnections").tag_resource
method.
boto3 documentation
# tag_resource method definition
def tag_resource(
self,
*,
ResourceArn: str,
Tags: Sequence[TagTypeDef], # (1)
) -> Dict[str, Any]:
...
- See TagTypeDef
# tag_resource method usage example with argument unpacking
kwargs: TagResourceInputRequestTypeDef = { # (1)
"ResourceArn": ...,
"Tags": ...,
}
parent.tag_resource(**kwargs)
untag_resource#
Removes tags from an Amazon Web Services resource.
Type annotations and code completion for boto3.client("codeconnections").untag_resource
method.
boto3 documentation
# untag_resource method definition
def untag_resource(
self,
*,
ResourceArn: str,
TagKeys: Sequence[str],
) -> Dict[str, Any]:
...
# untag_resource method usage example with argument unpacking
kwargs: UntagResourceInputRequestTypeDef = { # (1)
"ResourceArn": ...,
"TagKeys": ...,
}
parent.untag_resource(**kwargs)
update_host#
Updates a specified host with the provided configurations.
Type annotations and code completion for boto3.client("codeconnections").update_host
method.
boto3 documentation
# update_host method definition
def update_host(
self,
*,
HostArn: str,
ProviderEndpoint: str = ...,
VpcConfiguration: VpcConfigurationTypeDef = ..., # (1)
) -> Dict[str, Any]:
...
# update_host method usage example with argument unpacking
kwargs: UpdateHostInputRequestTypeDef = { # (1)
"HostArn": ...,
}
parent.update_host(**kwargs)
update_repository_link#
Updates the association between your connection and a specified external Git repository.
Type annotations and code completion for boto3.client("codeconnections").update_repository_link
method.
boto3 documentation
# update_repository_link method definition
def update_repository_link(
self,
*,
RepositoryLinkId: str,
ConnectionArn: str = ...,
EncryptionKeyArn: str = ...,
) -> UpdateRepositoryLinkOutputTypeDef: # (1)
...
# update_repository_link method usage example with argument unpacking
kwargs: UpdateRepositoryLinkInputRequestTypeDef = { # (1)
"RepositoryLinkId": ...,
}
parent.update_repository_link(**kwargs)
update_sync_blocker#
Allows you to update the status of a sync blocker, resolving the blocker and allowing syncing to continue.
Type annotations and code completion for boto3.client("codeconnections").update_sync_blocker
method.
boto3 documentation
# update_sync_blocker method definition
def update_sync_blocker(
self,
*,
Id: str,
SyncType: SyncConfigurationTypeType, # (1)
ResourceName: str,
ResolvedReason: str,
) -> UpdateSyncBlockerOutputTypeDef: # (2)
...
# update_sync_blocker method usage example with argument unpacking
kwargs: UpdateSyncBlockerInputRequestTypeDef = { # (1)
"Id": ...,
"SyncType": ...,
"ResourceName": ...,
"ResolvedReason": ...,
}
parent.update_sync_blocker(**kwargs)
update_sync_configuration#
Updates the sync configuration for your connection and a specified external Git repository.
Type annotations and code completion for boto3.client("codeconnections").update_sync_configuration
method.
boto3 documentation
# update_sync_configuration method definition
def update_sync_configuration(
self,
*,
ResourceName: str,
SyncType: SyncConfigurationTypeType, # (1)
Branch: str = ...,
ConfigFile: str = ...,
RepositoryLinkId: str = ...,
RoleArn: str = ...,
PublishDeploymentStatus: PublishDeploymentStatusType = ..., # (2)
TriggerResourceUpdateOn: TriggerResourceUpdateOnType = ..., # (3)
PullRequestComment: PullRequestCommentType = ..., # (4)
) -> UpdateSyncConfigurationOutputTypeDef: # (5)
...
- See SyncConfigurationTypeType
- See PublishDeploymentStatusType
- See TriggerResourceUpdateOnType
- See PullRequestCommentType
- See UpdateSyncConfigurationOutputTypeDef
# update_sync_configuration method usage example with argument unpacking
kwargs: UpdateSyncConfigurationInputRequestTypeDef = { # (1)
"ResourceName": ...,
"SyncType": ...,
}
parent.update_sync_configuration(**kwargs)