CodeStarClient
Auto-generated documentation for CodeStar type annotations stubs module types-aiobotocore-codestar.
CodeStarClient
Type annotations and code completion for session.client("codestar")
boto3 documentation
from aioboto3.session import Session
from types_aiobotocore_codestar.client import CodeStarClient
session = Session()
async with session.client("codestar") as client:
client: CodeStarClient
Exceptions
aioboto3
client exceptions are generated in runtime.
This class provides code completion for session.client("codestar").exceptions
structure.
async with session.client("codestar") as client:
try:
do_something(client)
except (
client.ClientError,
client.ConcurrentModificationException,
client.InvalidNextTokenException,
client.InvalidServiceRoleException,
client.LimitExceededException,
client.ProjectAlreadyExistsException,
client.ProjectConfigurationException,
client.ProjectCreationFailedException,
client.ProjectNotFoundException,
client.TeamMemberAlreadyAssociatedException,
client.TeamMemberNotFoundException,
client.UserProfileAlreadyExistsException,
client.UserProfileNotFoundException,
client.ValidationException,
) as e:
print(e)
from types_aiobotocore_codestar.client import Exceptions
def handle_error(exc: Exceptions.ClientError) -> None:
...
Methods
associate_team_member
Adds an IAM user to the team for an AWS CodeStar project.
Type annotations and code completion for session.client("codestar").associate_team_member
method.
boto3 documentation
await def associate_team_member(
self,
*,
projectId: str,
userArn: str,
projectRole: str,
clientRequestToken: str = ...,
remoteAccessAllowed: bool = ...,
) -> AssociateTeamMemberResultTypeDef: # (1)
...
kwargs: AssociateTeamMemberRequestRequestTypeDef = { # (1)
"projectId": ...,
"userArn": ...,
"projectRole": ...,
}
parent.associate_team_member(**kwargs)
can_paginate
Check if an operation can be paginated.
Type annotations and code completion for session.client("codestar").can_paginate
method.
boto3 documentation
close
Closes underlying endpoint connections.
Type annotations and code completion for session.client("codestar").close
method.
boto3 documentation
create_project
Creates a project, including project resources.
Type annotations and code completion for session.client("codestar").create_project
method.
boto3 documentation
await def create_project(
self,
*,
name: str,
id: str,
description: str = ...,
clientRequestToken: str = ...,
sourceCode: Sequence[CodeTypeDef] = ..., # (1)
toolchain: ToolchainTypeDef = ..., # (2)
tags: Mapping[str, str] = ...,
) -> CreateProjectResultTypeDef: # (3)
...
- See CodeTypeDef
- See ToolchainTypeDef
- See CreateProjectResultTypeDef
kwargs: CreateProjectRequestRequestTypeDef = { # (1)
"name": ...,
"id": ...,
}
parent.create_project(**kwargs)
create_user_profile
Creates a profile for a user that includes user preferences, such as the display name and email address assocciated with the user, in AWS CodeStar.
Type annotations and code completion for session.client("codestar").create_user_profile
method.
boto3 documentation
await def create_user_profile(
self,
*,
userArn: str,
displayName: str,
emailAddress: str,
sshPublicKey: str = ...,
) -> CreateUserProfileResultTypeDef: # (1)
...
kwargs: CreateUserProfileRequestRequestTypeDef = { # (1)
"userArn": ...,
"displayName": ...,
"emailAddress": ...,
}
parent.create_user_profile(**kwargs)
delete_project
Deletes a project, including project resources.
Type annotations and code completion for session.client("codestar").delete_project
method.
boto3 documentation
await def delete_project(
self,
*,
id: str,
clientRequestToken: str = ...,
deleteStack: bool = ...,
) -> DeleteProjectResultTypeDef: # (1)
...
kwargs: DeleteProjectRequestRequestTypeDef = { # (1)
"id": ...,
}
parent.delete_project(**kwargs)
delete_user_profile
Deletes a user profile in AWS CodeStar, including all personal preference data associated with that profile, such as display name and email address.
Type annotations and code completion for session.client("codestar").delete_user_profile
method.
boto3 documentation
await def delete_user_profile(
self,
*,
userArn: str,
) -> DeleteUserProfileResultTypeDef: # (1)
...
kwargs: DeleteUserProfileRequestRequestTypeDef = { # (1)
"userArn": ...,
}
parent.delete_user_profile(**kwargs)
describe_project
Describes a project and its resources.
Type annotations and code completion for session.client("codestar").describe_project
method.
boto3 documentation
await def describe_project(
self,
*,
id: str,
) -> DescribeProjectResultTypeDef: # (1)
...
kwargs: DescribeProjectRequestRequestTypeDef = { # (1)
"id": ...,
}
parent.describe_project(**kwargs)
describe_user_profile
Describes a user in AWS CodeStar and the user attributes across all projects.
Type annotations and code completion for session.client("codestar").describe_user_profile
method.
boto3 documentation
await def describe_user_profile(
self,
*,
userArn: str,
) -> DescribeUserProfileResultTypeDef: # (1)
...
kwargs: DescribeUserProfileRequestRequestTypeDef = { # (1)
"userArn": ...,
}
parent.describe_user_profile(**kwargs)
disassociate_team_member
Removes a user from a project.
Type annotations and code completion for session.client("codestar").disassociate_team_member
method.
boto3 documentation
await def disassociate_team_member(
self,
*,
projectId: str,
userArn: str,
) -> Dict[str, Any]:
...
kwargs: DisassociateTeamMemberRequestRequestTypeDef = { # (1)
"projectId": ...,
"userArn": ...,
}
parent.disassociate_team_member(**kwargs)
generate_presigned_url
Generate a presigned url given a client, its method, and arguments.
Type annotations and code completion for session.client("codestar").generate_presigned_url
method.
boto3 documentation
await def generate_presigned_url(
self,
ClientMethod: str,
Params: Mapping[str, Any] = ...,
ExpiresIn: int = 3600,
HttpMethod: str = ...,
) -> str:
...
list_projects
Lists all projects in AWS CodeStar associated with your AWS account.
Type annotations and code completion for session.client("codestar").list_projects
method.
boto3 documentation
await def list_projects(
self,
*,
nextToken: str = ...,
maxResults: int = ...,
) -> ListProjectsResultTypeDef: # (1)
...
kwargs: ListProjectsRequestRequestTypeDef = { # (1)
"nextToken": ...,
}
parent.list_projects(**kwargs)
list_resources
Lists resources associated with a project in AWS CodeStar.
Type annotations and code completion for session.client("codestar").list_resources
method.
boto3 documentation
await def list_resources(
self,
*,
projectId: str,
nextToken: str = ...,
maxResults: int = ...,
) -> ListResourcesResultTypeDef: # (1)
...
kwargs: ListResourcesRequestRequestTypeDef = { # (1)
"projectId": ...,
}
parent.list_resources(**kwargs)
list_tags_for_project
Gets the tags for a project.
Type annotations and code completion for session.client("codestar").list_tags_for_project
method.
boto3 documentation
await def list_tags_for_project(
self,
*,
id: str,
nextToken: str = ...,
maxResults: int = ...,
) -> ListTagsForProjectResultTypeDef: # (1)
...
kwargs: ListTagsForProjectRequestRequestTypeDef = { # (1)
"id": ...,
}
parent.list_tags_for_project(**kwargs)
list_team_members
Lists all team members associated with a project.
Type annotations and code completion for session.client("codestar").list_team_members
method.
boto3 documentation
await def list_team_members(
self,
*,
projectId: str,
nextToken: str = ...,
maxResults: int = ...,
) -> ListTeamMembersResultTypeDef: # (1)
...
kwargs: ListTeamMembersRequestRequestTypeDef = { # (1)
"projectId": ...,
}
parent.list_team_members(**kwargs)
list_user_profiles
Lists all the user profiles configured for your AWS account in AWS CodeStar.
Type annotations and code completion for session.client("codestar").list_user_profiles
method.
boto3 documentation
await def list_user_profiles(
self,
*,
nextToken: str = ...,
maxResults: int = ...,
) -> ListUserProfilesResultTypeDef: # (1)
...
kwargs: ListUserProfilesRequestRequestTypeDef = { # (1)
"nextToken": ...,
}
parent.list_user_profiles(**kwargs)
tag_project
Adds tags to a project.
Type annotations and code completion for session.client("codestar").tag_project
method.
boto3 documentation
await def tag_project(
self,
*,
id: str,
tags: Mapping[str, str],
) -> TagProjectResultTypeDef: # (1)
...
kwargs: TagProjectRequestRequestTypeDef = { # (1)
"id": ...,
"tags": ...,
}
parent.tag_project(**kwargs)
untag_project
Removes tags from a project.
Type annotations and code completion for session.client("codestar").untag_project
method.
boto3 documentation
await def untag_project(
self,
*,
id: str,
tags: Sequence[str],
) -> Dict[str, Any]:
...
kwargs: UntagProjectRequestRequestTypeDef = { # (1)
"id": ...,
"tags": ...,
}
parent.untag_project(**kwargs)
update_project
Updates a project in AWS CodeStar.
Type annotations and code completion for session.client("codestar").update_project
method.
boto3 documentation
await def update_project(
self,
*,
id: str,
name: str = ...,
description: str = ...,
) -> Dict[str, Any]:
...
kwargs: UpdateProjectRequestRequestTypeDef = { # (1)
"id": ...,
}
parent.update_project(**kwargs)
update_team_member
Updates a team member's attributes in an AWS CodeStar project.
Type annotations and code completion for session.client("codestar").update_team_member
method.
boto3 documentation
await def update_team_member(
self,
*,
projectId: str,
userArn: str,
projectRole: str = ...,
remoteAccessAllowed: bool = ...,
) -> UpdateTeamMemberResultTypeDef: # (1)
...
kwargs: UpdateTeamMemberRequestRequestTypeDef = { # (1)
"projectId": ...,
"userArn": ...,
}
parent.update_team_member(**kwargs)
update_user_profile
Updates a user's profile in AWS CodeStar.
Type annotations and code completion for session.client("codestar").update_user_profile
method.
boto3 documentation
await def update_user_profile(
self,
*,
userArn: str,
displayName: str = ...,
emailAddress: str = ...,
sshPublicKey: str = ...,
) -> UpdateUserProfileResultTypeDef: # (1)
...
kwargs: UpdateUserProfileRequestRequestTypeDef = { # (1)
"userArn": ...,
}
parent.update_user_profile(**kwargs)
__aenter__
Type annotations and code completion for session.client("codestar").__aenter__
method.
boto3 documentation
__aexit__
Type annotations and code completion for session.client("codestar").__aexit__
method.
boto3 documentation
get_paginator
Type annotations and code completion for session.client("codestar").get_paginator
method with overloads.
client.get_paginator("list_projects")
-> ListProjectsPaginatorclient.get_paginator("list_resources")
-> ListResourcesPaginatorclient.get_paginator("list_team_members")
-> ListTeamMembersPaginatorclient.get_paginator("list_user_profiles")
-> ListUserProfilesPaginator