CodeStar

Table of Contents

Client

class CodeStar.Client

A low-level client representing AWS CodeStar

This is the API reference for AWS CodeStar. This reference provides descriptions of the operations and data types for the AWS CodeStar API along with usage examples.

You can use the AWS CodeStar API to work with:

Projects and their resources, by calling the following:

  • DeleteProject , which deletes a project.
  • DescribeProject , which lists the attributes of a project.
  • ListProjects , which lists all projects associated with your AWS account.
  • ListResources , which lists the resources associated with a project.
  • ListTagsForProject , which lists the tags associated with a project.
  • TagProject , which adds tags to a project.
  • UntagProject , which removes tags from a project.
  • UpdateProject , which updates the attributes of a project.

Teams and team members, by calling the following:

  • AssociateTeamMember , which adds an IAM user to the team for a project.
  • DisassociateTeamMember , which removes an IAM user from the team for a project.
  • ListTeamMembers , which lists all the IAM users in the team for a project, including their roles and attributes.
  • UpdateTeamMember , which updates a team member's attributes in a project.

Users, by calling the following:

  • CreateUserProfile , which creates a user profile that contains data associated with the user across all projects.
  • DeleteUserProfile , which deletes all user profile information across all projects.
  • DescribeUserProfile , which describes the profile of a user.
  • ListUserProfiles , which lists all user profiles.
  • UpdateUserProfile , which updates the profile for a user.
import boto3

client = boto3.client('codestar')

These are the available methods:

associate_team_member(**kwargs)

Adds an IAM user to the team for an AWS CodeStar project.

See also: AWS API Documentation

Request Syntax

response = client.associate_team_member(
    projectId='string',
    clientRequestToken='string',
    userArn='string',
    projectRole='string',
    remoteAccessAllowed=True|False
)
Parameters
  • projectId (string) --

    [REQUIRED]

    The ID of the project to which you will add the IAM user.

  • clientRequestToken (string) -- A user- or system-generated token that identifies the entity that requested the team member association to the project. This token can be used to repeat the request.
  • userArn (string) --

    [REQUIRED]

    The Amazon Resource Name (ARN) for the IAM user you want to add to the AWS CodeStar project.

  • projectRole (string) --

    [REQUIRED]

    The AWS CodeStar project role that will apply to this user. This role determines what actions a user can take in an AWS CodeStar project.

  • remoteAccessAllowed (boolean) -- Whether the team member is allowed to use an SSH public/private key pair to remotely access project resources, for example Amazon EC2 instances.
Return type

dict

Returns

Response Syntax

{
    'clientRequestToken': 'string'
}

Response Structure

  • (dict) --

    • clientRequestToken (string) --

      The user- or system-generated token from the initial request that can be used to repeat the request.

Exceptions

  • CodeStar.Client.exceptions.LimitExceededException
  • CodeStar.Client.exceptions.ProjectNotFoundException
  • CodeStar.Client.exceptions.TeamMemberAlreadyAssociatedException
  • CodeStar.Client.exceptions.ValidationException
  • CodeStar.Client.exceptions.InvalidServiceRoleException
  • CodeStar.Client.exceptions.ProjectConfigurationException
  • CodeStar.Client.exceptions.ConcurrentModificationException
can_paginate(operation_name)

Check if an operation can be paginated.

Parameters
operation_name (string) -- The operation name. This is the same name as the method name on the client. For example, if the method name is create_foo, and you'd normally invoke the operation as client.create_foo(**kwargs), if the create_foo operation can be paginated, you can use the call client.get_paginator("create_foo").
Returns
True if the operation can be paginated, False otherwise.
close()

Closes underlying endpoint connections.

create_project(**kwargs)

Creates a project, including project resources. This action creates a project based on a submitted project request. A set of source code files and a toolchain template file can be included with the project request. If these are not provided, an empty project is created.

See also: AWS API Documentation

Request Syntax

response = client.create_project(
    name='string',
    id='string',
    description='string',
    clientRequestToken='string',
    sourceCode=[
        {
            'source': {
                's3': {
                    'bucketName': 'string',
                    'bucketKey': 'string'
                }
            },
            'destination': {
                'codeCommit': {
                    'name': 'string'
                },
                'gitHub': {
                    'name': 'string',
                    'description': 'string',
                    'type': 'string',
                    'owner': 'string',
                    'privateRepository': True|False,
                    'issuesEnabled': True|False,
                    'token': 'string'
                }
            }
        },
    ],
    toolchain={
        'source': {
            's3': {
                'bucketName': 'string',
                'bucketKey': 'string'
            }
        },
        'roleArn': 'string',
        'stackParameters': {
            'string': 'string'
        }
    },
    tags={
        'string': 'string'
    }
)
Parameters
  • name (string) --

    [REQUIRED]

    The display name for the project to be created in AWS CodeStar.

  • id (string) --

    [REQUIRED]

    The ID of the project to be created in AWS CodeStar.

  • description (string) -- The description of the project, if any.
  • clientRequestToken (string) -- A user- or system-generated token that identifies the entity that requested project creation. This token can be used to repeat the request.
  • sourceCode (list) --

    A list of the Code objects submitted with the project request. If this parameter is specified, the request must also include the toolchain parameter.

    • (dict) --

      Location and destination information about the source code files provided with the project request. The source code is uploaded to the new project source repository after project creation.

      • source (dict) -- [REQUIRED]

        The location where the source code files provided with the project request are stored. AWS CodeStar retrieves the files during project creation.

        • s3 (dict) -- [REQUIRED]

          Information about the Amazon S3 location where the source code files provided with the project request are stored.

          • bucketName (string) --

            The Amazon S3 bucket name where the source code files provided with the project request are stored.

          • bucketKey (string) --

            The Amazon S3 object key where the source code files provided with the project request are stored.

      • destination (dict) -- [REQUIRED]

        The repository to be created in AWS CodeStar. Valid values are AWS CodeCommit or GitHub. After AWS CodeStar provisions the new repository, the source code files provided with the project request are placed in the repository.

        • codeCommit (dict) --

          Information about the AWS CodeCommit repository to be created in AWS CodeStar. This is where the source code files provided with the project request will be uploaded after project creation.

          • name (string) -- [REQUIRED]

            The name of the AWS CodeCommit repository to be created in AWS CodeStar.

        • gitHub (dict) --

          Information about the GitHub repository to be created in AWS CodeStar. This is where the source code files provided with the project request will be uploaded after project creation.

          • name (string) -- [REQUIRED]

            Name of the GitHub repository to be created in AWS CodeStar.

          • description (string) --

            Description for the GitHub repository to be created in AWS CodeStar. This description displays in GitHub after the repository is created.

          • type (string) -- [REQUIRED]

            The type of GitHub repository to be created in AWS CodeStar. Valid values are User or Organization.

          • owner (string) -- [REQUIRED]

            The GitHub username for the owner of the GitHub repository to be created in AWS CodeStar. If this repository should be owned by a GitHub organization, provide its name.

          • privateRepository (boolean) -- [REQUIRED]

            Whether the GitHub repository is to be a private repository.

          • issuesEnabled (boolean) -- [REQUIRED]

            Whether to enable issues for the GitHub repository.

          • token (string) -- [REQUIRED]

            The GitHub user's personal access token for the GitHub repository.

  • toolchain (dict) --

    The name of the toolchain template file submitted with the project request. If this parameter is specified, the request must also include the sourceCode parameter.

    • source (dict) -- [REQUIRED]

      The Amazon S3 location where the toolchain template file provided with the project request is stored. AWS CodeStar retrieves the file during project creation.

      • s3 (dict) -- [REQUIRED]

        The Amazon S3 bucket where the toolchain template file provided with the project request is stored.

        • bucketName (string) --

          The Amazon S3 bucket name where the source code files provided with the project request are stored.

        • bucketKey (string) --

          The Amazon S3 object key where the source code files provided with the project request are stored.

    • roleArn (string) --

      The service role ARN for AWS CodeStar to use for the toolchain template during stack provisioning.

    • stackParameters (dict) --

      The list of parameter overrides to be passed into the toolchain template during stack provisioning, if any.

      • (string) --
        • (string) --
  • tags (dict) --

    The tags created for the project.

    • (string) --
      • (string) --
Return type

dict

Returns

Response Syntax

{
    'id': 'string',
    'arn': 'string',
    'clientRequestToken': 'string',
    'projectTemplateId': 'string'
}

Response Structure

  • (dict) --

    • id (string) --

      The ID of the project.

    • arn (string) --

      The Amazon Resource Name (ARN) of the created project.

    • clientRequestToken (string) --

      A user- or system-generated token that identifies the entity that requested project creation.

    • projectTemplateId (string) --

      Reserved for future use.

Exceptions

  • CodeStar.Client.exceptions.ProjectAlreadyExistsException
  • CodeStar.Client.exceptions.LimitExceededException
  • CodeStar.Client.exceptions.ValidationException
  • CodeStar.Client.exceptions.ProjectCreationFailedException
  • CodeStar.Client.exceptions.InvalidServiceRoleException
  • CodeStar.Client.exceptions.ProjectConfigurationException
  • CodeStar.Client.exceptions.ConcurrentModificationException
create_user_profile(**kwargs)

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. The user profile is not project-specific. Information in the user profile is displayed wherever the user's information appears to other users in AWS CodeStar.

See also: AWS API Documentation

Request Syntax

response = client.create_user_profile(
    userArn='string',
    displayName='string',
    emailAddress='string',
    sshPublicKey='string'
)
Parameters
  • userArn (string) --

    [REQUIRED]

    The Amazon Resource Name (ARN) of the user in IAM.

  • displayName (string) --

    [REQUIRED]

    The name that will be displayed as the friendly name for the user in AWS CodeStar.

  • emailAddress (string) --

    [REQUIRED]

    The email address that will be displayed as part of the user's profile in AWS CodeStar.

  • sshPublicKey (string) -- The SSH public key associated with the user in AWS CodeStar. If a project owner allows the user remote access to project resources, this public key will be used along with the user's private key for SSH access.
Return type

dict

Returns

Response Syntax

{
    'userArn': 'string',
    'displayName': 'string',
    'emailAddress': 'string',
    'sshPublicKey': 'string',
    'createdTimestamp': datetime(2015, 1, 1),
    'lastModifiedTimestamp': datetime(2015, 1, 1)
}

Response Structure

  • (dict) --

    • userArn (string) --

      The Amazon Resource Name (ARN) of the user in IAM.

    • displayName (string) --

      The name that is displayed as the friendly name for the user in AWS CodeStar.

    • emailAddress (string) --

      The email address that is displayed as part of the user's profile in AWS CodeStar.

    • sshPublicKey (string) --

      The SSH public key associated with the user in AWS CodeStar. This is the public portion of the public/private keypair the user can use to access project resources if a project owner allows the user remote access to those resources.

    • createdTimestamp (datetime) --

      The date the user profile was created, in timestamp format.

    • lastModifiedTimestamp (datetime) --

      The date the user profile was last modified, in timestamp format.

Exceptions

  • CodeStar.Client.exceptions.UserProfileAlreadyExistsException
  • CodeStar.Client.exceptions.ValidationException
delete_project(**kwargs)

Deletes a project, including project resources. Does not delete users associated with the project, but does delete the IAM roles that allowed access to the project.

See also: AWS API Documentation

Request Syntax

response = client.delete_project(
    id='string',
    clientRequestToken='string',
    deleteStack=True|False
)
Parameters
  • id (string) --

    [REQUIRED]

    The ID of the project to be deleted in AWS CodeStar.

  • clientRequestToken (string) -- A user- or system-generated token that identifies the entity that requested project deletion. This token can be used to repeat the request.
  • deleteStack (boolean) -- Whether to send a delete request for the primary stack in AWS CloudFormation originally used to generate the project and its resources. This option will delete all AWS resources for the project (except for any buckets in Amazon S3) as well as deleting the project itself. Recommended for most use cases.
Return type

dict

Returns

Response Syntax

{
    'stackId': 'string',
    'projectArn': 'string'
}

Response Structure

  • (dict) --

    • stackId (string) --

      The ID of the primary stack in AWS CloudFormation that will be deleted as part of deleting the project and its resources.

    • projectArn (string) --

      The Amazon Resource Name (ARN) of the deleted project.

Exceptions

  • CodeStar.Client.exceptions.ConcurrentModificationException
  • CodeStar.Client.exceptions.ValidationException
  • CodeStar.Client.exceptions.InvalidServiceRoleException
delete_user_profile(**kwargs)

Deletes a user profile in AWS CodeStar, including all personal preference data associated with that profile, such as display name and email address. It does not delete the history of that user, for example the history of commits made by that user.

See also: AWS API Documentation

Request Syntax

response = client.delete_user_profile(
    userArn='string'
)
Parameters
userArn (string) --

[REQUIRED]

The Amazon Resource Name (ARN) of the user to delete from AWS CodeStar.

Return type
dict
Returns
Response Syntax
{
    'userArn': 'string'
}

Response Structure

  • (dict) --
    • userArn (string) --

      The Amazon Resource Name (ARN) of the user deleted from AWS CodeStar.

Exceptions

  • CodeStar.Client.exceptions.ValidationException
describe_project(**kwargs)

Describes a project and its resources.

See also: AWS API Documentation

Request Syntax

response = client.describe_project(
    id='string'
)
Parameters
id (string) --

[REQUIRED]

The ID of the project.

Return type
dict
Returns
Response Syntax
{
    'name': 'string',
    'id': 'string',
    'arn': 'string',
    'description': 'string',
    'clientRequestToken': 'string',
    'createdTimeStamp': datetime(2015, 1, 1),
    'stackId': 'string',
    'projectTemplateId': 'string',
    'status': {
        'state': 'string',
        'reason': 'string'
    }
}

Response Structure

  • (dict) --
    • name (string) --

      The display name for the project.

    • id (string) --

      The ID of the project.

    • arn (string) --

      The Amazon Resource Name (ARN) for the project.

    • description (string) --

      The description of the project, if any.

    • clientRequestToken (string) --

      A user- or system-generated token that identifies the entity that requested project creation.

    • createdTimeStamp (datetime) --

      The date and time the project was created, in timestamp format.

    • stackId (string) --

      The ID of the primary stack in AWS CloudFormation used to generate resources for the project.

    • projectTemplateId (string) --

      The ID for the AWS CodeStar project template used to create the project.

    • status (dict) --

      The project creation or deletion status.

      • state (string) --

        The phase of completion for a project creation or deletion.

      • reason (string) --

        In the case of a project creation or deletion failure, a reason for the failure.

Exceptions

  • CodeStar.Client.exceptions.ProjectNotFoundException
  • CodeStar.Client.exceptions.ValidationException
  • CodeStar.Client.exceptions.InvalidServiceRoleException
  • CodeStar.Client.exceptions.ProjectConfigurationException
  • CodeStar.Client.exceptions.ConcurrentModificationException
describe_user_profile(**kwargs)

Describes a user in AWS CodeStar and the user attributes across all projects.

See also: AWS API Documentation

Request Syntax

response = client.describe_user_profile(
    userArn='string'
)
Parameters
userArn (string) --

[REQUIRED]

The Amazon Resource Name (ARN) of the user.

Return type
dict
Returns
Response Syntax
{
    'userArn': 'string',
    'displayName': 'string',
    'emailAddress': 'string',
    'sshPublicKey': 'string',
    'createdTimestamp': datetime(2015, 1, 1),
    'lastModifiedTimestamp': datetime(2015, 1, 1)
}

Response Structure

  • (dict) --
    • userArn (string) --

      The Amazon Resource Name (ARN) of the user.

    • displayName (string) --

      The display name shown for the user in AWS CodeStar projects. For example, this could be set to both first and last name ("Mary Major") or a single name ("Mary"). The display name is also used to generate the initial icon associated with the user in AWS CodeStar projects. If spaces are included in the display name, the first character that appears after the space will be used as the second character in the user initial icon. The initial icon displays a maximum of two characters, so a display name with more than one space (for example "Mary Jane Major") would generate an initial icon using the first character and the first character after the space ("MJ", not "MM").

    • emailAddress (string) --

      The email address for the user. Optional.

    • sshPublicKey (string) --

      The SSH public key associated with the user. This SSH public key is associated with the user profile, and can be used in conjunction with the associated private key for access to project resources, such as Amazon EC2 instances, if a project owner grants remote access to those resources.

    • createdTimestamp (datetime) --

      The date and time when the user profile was created in AWS CodeStar, in timestamp format.

    • lastModifiedTimestamp (datetime) --

      The date and time when the user profile was last modified, in timestamp format.

Exceptions

  • CodeStar.Client.exceptions.UserProfileNotFoundException
  • CodeStar.Client.exceptions.ValidationException
disassociate_team_member(**kwargs)

Removes a user from a project. Removing a user from a project also removes the IAM policies from that user that allowed access to the project and its resources. Disassociating a team member does not remove that user's profile from AWS CodeStar. It does not remove the user from IAM.

See also: AWS API Documentation

Request Syntax

response = client.disassociate_team_member(
    projectId='string',
    userArn='string'
)
Parameters
  • projectId (string) --

    [REQUIRED]

    The ID of the AWS CodeStar project from which you want to remove a team member.

  • userArn (string) --

    [REQUIRED]

    The Amazon Resource Name (ARN) of the IAM user or group whom you want to remove from the project.

Return type

dict

Returns

Response Syntax

{}

Response Structure

  • (dict) --

Exceptions

  • CodeStar.Client.exceptions.ProjectNotFoundException
  • CodeStar.Client.exceptions.ValidationException
  • CodeStar.Client.exceptions.InvalidServiceRoleException
  • CodeStar.Client.exceptions.ConcurrentModificationException
get_paginator(operation_name)

Create a paginator for an operation.

Parameters
operation_name (string) -- The operation name. This is the same name as the method name on the client. For example, if the method name is create_foo, and you'd normally invoke the operation as client.create_foo(**kwargs), if the create_foo operation can be paginated, you can use the call client.get_paginator("create_foo").
Raises OperationNotPageableError
Raised if the operation is not pageable. You can use the client.can_paginate method to check if an operation is pageable.
Return type
L{botocore.paginate.Paginator}
Returns
A paginator object.
get_waiter(waiter_name)

Returns an object that can wait for some condition.

Parameters
waiter_name (str) -- The name of the waiter to get. See the waiters section of the service docs for a list of available waiters.
Returns
The specified waiter object.
Return type
botocore.waiter.Waiter
list_projects(**kwargs)

Lists all projects in AWS CodeStar associated with your AWS account.

See also: AWS API Documentation

Request Syntax

response = client.list_projects(
    nextToken='string',
    maxResults=123
)
Parameters
  • nextToken (string) -- The continuation token to be used to return the next set of results, if the results cannot be returned in one response.
  • maxResults (integer) -- The maximum amount of data that can be contained in a single set of results.
Return type

dict

Returns

Response Syntax

{
    'projects': [
        {
            'projectId': 'string',
            'projectArn': 'string'
        },
    ],
    'nextToken': 'string'
}

Response Structure

  • (dict) --

    • projects (list) --

      A list of projects.

      • (dict) --

        Information about the metadata for a project.

        • projectId (string) --

          The ID of the project.

        • projectArn (string) --

          The Amazon Resource Name (ARN) of the project.

    • nextToken (string) --

      The continuation token to use when requesting the next set of results, if there are more results to be returned.

Exceptions

  • CodeStar.Client.exceptions.InvalidNextTokenException
  • CodeStar.Client.exceptions.ValidationException
list_resources(**kwargs)

Lists resources associated with a project in AWS CodeStar.

See also: AWS API Documentation

Request Syntax

response = client.list_resources(
    projectId='string',
    nextToken='string',
    maxResults=123
)
Parameters
  • projectId (string) --

    [REQUIRED]

    The ID of the project.

  • nextToken (string) -- The continuation token for the next set of results, if the results cannot be returned in one response.
  • maxResults (integer) -- The maximum amount of data that can be contained in a single set of results.
Return type

dict

Returns

Response Syntax

{
    'resources': [
        {
            'id': 'string'
        },
    ],
    'nextToken': 'string'
}

Response Structure

  • (dict) --

    • resources (list) --

      An array of resources associated with the project.

      • (dict) --

        Information about a resource for a project.

        • id (string) --

          The Amazon Resource Name (ARN) of the resource.

    • nextToken (string) --

      The continuation token to use when requesting the next set of results, if there are more results to be returned.

Exceptions

  • CodeStar.Client.exceptions.ProjectNotFoundException
  • CodeStar.Client.exceptions.InvalidNextTokenException
  • CodeStar.Client.exceptions.ValidationException
list_tags_for_project(**kwargs)

Gets the tags for a project.

See also: AWS API Documentation

Request Syntax

response = client.list_tags_for_project(
    id='string',
    nextToken='string',
    maxResults=123
)
Parameters
  • id (string) --

    [REQUIRED]

    The ID of the project to get tags for.

  • nextToken (string) -- Reserved for future use.
  • maxResults (integer) -- Reserved for future use.
Return type

dict

Returns

Response Syntax

{
    'tags': {
        'string': 'string'
    },
    'nextToken': 'string'
}

Response Structure

  • (dict) --

    • tags (dict) --

      The tags for the project.

      • (string) --
        • (string) --
    • nextToken (string) --

      Reserved for future use.

Exceptions

  • CodeStar.Client.exceptions.ProjectNotFoundException
  • CodeStar.Client.exceptions.ValidationException
  • CodeStar.Client.exceptions.InvalidNextTokenException
list_team_members(**kwargs)

Lists all team members associated with a project.

See also: AWS API Documentation

Request Syntax

response = client.list_team_members(
    projectId='string',
    nextToken='string',
    maxResults=123
)
Parameters
  • projectId (string) --

    [REQUIRED]

    The ID of the project for which you want to list team members.

  • nextToken (string) -- The continuation token for the next set of results, if the results cannot be returned in one response.
  • maxResults (integer) -- The maximum number of team members you want returned in a response.
Return type

dict

Returns

Response Syntax

{
    'teamMembers': [
        {
            'userArn': 'string',
            'projectRole': 'string',
            'remoteAccessAllowed': True|False
        },
    ],
    'nextToken': 'string'
}

Response Structure

  • (dict) --

    • teamMembers (list) --

      A list of team member objects for the project.

      • (dict) --

        Information about a team member in a project.

        • userArn (string) --

          The Amazon Resource Name (ARN) of the user in IAM.

        • projectRole (string) --

          The role assigned to the user in the project. Project roles have different levels of access. For more information, see Working with Teams in the AWS CodeStar User Guide .

        • remoteAccessAllowed (boolean) --

          Whether the user is allowed to remotely access project resources using an SSH public/private key pair.

    • nextToken (string) --

      The continuation token to use when requesting the next set of results, if there are more results to be returned.

Exceptions

  • CodeStar.Client.exceptions.ProjectNotFoundException
  • CodeStar.Client.exceptions.InvalidNextTokenException
  • CodeStar.Client.exceptions.ValidationException
list_user_profiles(**kwargs)

Lists all the user profiles configured for your AWS account in AWS CodeStar.

See also: AWS API Documentation

Request Syntax

response = client.list_user_profiles(
    nextToken='string',
    maxResults=123
)
Parameters
  • nextToken (string) -- The continuation token for the next set of results, if the results cannot be returned in one response.
  • maxResults (integer) -- The maximum number of results to return in a response.
Return type

dict

Returns

Response Syntax

{
    'userProfiles': [
        {
            'userArn': 'string',
            'displayName': 'string',
            'emailAddress': 'string',
            'sshPublicKey': 'string'
        },
    ],
    'nextToken': 'string'
}

Response Structure

  • (dict) --

    • userProfiles (list) --

      All the user profiles configured in AWS CodeStar for an AWS account.

      • (dict) --

        Information about a user's profile in AWS CodeStar.

        • userArn (string) --

          The Amazon Resource Name (ARN) of the user in IAM.

        • displayName (string) --

          The display name of a user in AWS CodeStar. For example, this could be set to both first and last name ("Mary Major") or a single name ("Mary"). The display name is also used to generate the initial icon associated with the user in AWS CodeStar projects. If spaces are included in the display name, the first character that appears after the space will be used as the second character in the user initial icon. The initial icon displays a maximum of two characters, so a display name with more than one space (for example "Mary Jane Major") would generate an initial icon using the first character and the first character after the space ("MJ", not "MM").

        • emailAddress (string) --

          The email address associated with the user.

        • sshPublicKey (string) --

          The SSH public key associated with the user in AWS CodeStar. If a project owner allows the user remote access to project resources, this public key will be used along with the user's private key for SSH access.

    • nextToken (string) --

      The continuation token to use when requesting the next set of results, if there are more results to be returned.

Exceptions

  • CodeStar.Client.exceptions.InvalidNextTokenException
  • CodeStar.Client.exceptions.ValidationException
tag_project(**kwargs)

Adds tags to a project.

See also: AWS API Documentation

Request Syntax

response = client.tag_project(
    id='string',
    tags={
        'string': 'string'
    }
)
Parameters
  • id (string) --

    [REQUIRED]

    The ID of the project you want to add a tag to.

  • tags (dict) --

    [REQUIRED]

    The tags you want to add to the project.

    • (string) --
      • (string) --
Return type

dict

Returns

Response Syntax

{
    'tags': {
        'string': 'string'
    }
}

Response Structure

  • (dict) --

    • tags (dict) --

      The tags for the project.

      • (string) --
        • (string) --

Exceptions

  • CodeStar.Client.exceptions.ProjectNotFoundException
  • CodeStar.Client.exceptions.ValidationException
  • CodeStar.Client.exceptions.LimitExceededException
  • CodeStar.Client.exceptions.ConcurrentModificationException
untag_project(**kwargs)

Removes tags from a project.

See also: AWS API Documentation

Request Syntax

response = client.untag_project(
    id='string',
    tags=[
        'string',
    ]
)
Parameters
  • id (string) --

    [REQUIRED]

    The ID of the project to remove tags from.

  • tags (list) --

    [REQUIRED]

    The tags to remove from the project.

    • (string) --
Return type

dict

Returns

Response Syntax

{}

Response Structure

  • (dict) --

Exceptions

  • CodeStar.Client.exceptions.ProjectNotFoundException
  • CodeStar.Client.exceptions.ValidationException
  • CodeStar.Client.exceptions.LimitExceededException
  • CodeStar.Client.exceptions.ConcurrentModificationException
update_project(**kwargs)

Updates a project in AWS CodeStar.

See also: AWS API Documentation

Request Syntax

response = client.update_project(
    id='string',
    name='string',
    description='string'
)
Parameters
  • id (string) --

    [REQUIRED]

    The ID of the project you want to update.

  • name (string) -- The name of the project you want to update.
  • description (string) -- The description of the project, if any.
Return type

dict

Returns

Response Syntax

{}

Response Structure

  • (dict) --

Exceptions

  • CodeStar.Client.exceptions.ProjectNotFoundException
  • CodeStar.Client.exceptions.ValidationException
update_team_member(**kwargs)

Updates a team member's attributes in an AWS CodeStar project. For example, you can change a team member's role in the project, or change whether they have remote access to project resources.

See also: AWS API Documentation

Request Syntax

response = client.update_team_member(
    projectId='string',
    userArn='string',
    projectRole='string',
    remoteAccessAllowed=True|False
)
Parameters
  • projectId (string) --

    [REQUIRED]

    The ID of the project.

  • userArn (string) --

    [REQUIRED]

    The Amazon Resource Name (ARN) of the user for whom you want to change team membership attributes.

  • projectRole (string) -- The role assigned to the user in the project. Project roles have different levels of access. For more information, see Working with Teams in the AWS CodeStar User Guide .
  • remoteAccessAllowed (boolean) -- Whether a team member is allowed to remotely access project resources using the SSH public key associated with the user's profile. Even if this is set to True, the user must associate a public key with their profile before the user can access resources.
Return type

dict

Returns

Response Syntax

{
    'userArn': 'string',
    'projectRole': 'string',
    'remoteAccessAllowed': True|False
}

Response Structure

  • (dict) --

    • userArn (string) --

      The Amazon Resource Name (ARN) of the user whose team membership attributes were updated.

    • projectRole (string) --

      The project role granted to the user.

    • remoteAccessAllowed (boolean) --

      Whether a team member is allowed to remotely access project resources using the SSH public key associated with the user's profile.

Exceptions

  • CodeStar.Client.exceptions.LimitExceededException
  • CodeStar.Client.exceptions.ProjectNotFoundException
  • CodeStar.Client.exceptions.ValidationException
  • CodeStar.Client.exceptions.InvalidServiceRoleException
  • CodeStar.Client.exceptions.ProjectConfigurationException
  • CodeStar.Client.exceptions.ConcurrentModificationException
  • CodeStar.Client.exceptions.TeamMemberNotFoundException
update_user_profile(**kwargs)

Updates a user's profile in AWS CodeStar. The user profile is not project-specific. Information in the user profile is displayed wherever the user's information appears to other users in AWS CodeStar.

See also: AWS API Documentation

Request Syntax

response = client.update_user_profile(
    userArn='string',
    displayName='string',
    emailAddress='string',
    sshPublicKey='string'
)
Parameters
  • userArn (string) --

    [REQUIRED]

    The name that will be displayed as the friendly name for the user in AWS CodeStar.

  • displayName (string) -- The name that is displayed as the friendly name for the user in AWS CodeStar.
  • emailAddress (string) -- The email address that is displayed as part of the user's profile in AWS CodeStar.
  • sshPublicKey (string) -- The SSH public key associated with the user in AWS CodeStar. If a project owner allows the user remote access to project resources, this public key will be used along with the user's private key for SSH access.
Return type

dict

Returns

Response Syntax

{
    'userArn': 'string',
    'displayName': 'string',
    'emailAddress': 'string',
    'sshPublicKey': 'string',
    'createdTimestamp': datetime(2015, 1, 1),
    'lastModifiedTimestamp': datetime(2015, 1, 1)
}

Response Structure

  • (dict) --

    • userArn (string) --

      The Amazon Resource Name (ARN) of the user in IAM.

    • displayName (string) --

      The name that is displayed as the friendly name for the user in AWS CodeStar.

    • emailAddress (string) --

      The email address that is displayed as part of the user's profile in AWS CodeStar.

    • sshPublicKey (string) --

      The SSH public key associated with the user in AWS CodeStar. This is the public portion of the public/private keypair the user can use to access project resources if a project owner allows the user remote access to those resources.

    • createdTimestamp (datetime) --

      The date the user profile was created, in timestamp format.

    • lastModifiedTimestamp (datetime) --

      The date the user profile was last modified, in timestamp format.

Exceptions

  • CodeStar.Client.exceptions.UserProfileNotFoundException
  • CodeStar.Client.exceptions.ValidationException

Paginators

The available paginators are:

class CodeStar.Paginator.ListProjects
paginator = client.get_paginator('list_projects')
paginate(**kwargs)

Creates an iterator that will paginate through responses from CodeStar.Client.list_projects().

See also: AWS API Documentation

Request Syntax

response_iterator = paginator.paginate(
    PaginationConfig={
        'MaxItems': 123,
        'PageSize': 123,
        'StartingToken': 'string'
    }
)
Parameters
PaginationConfig (dict) --

A dictionary that provides parameters to control pagination.

  • MaxItems (integer) --

    The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken will be provided in the output that you can use to resume pagination.

  • PageSize (integer) --

    The size of each page.

  • StartingToken (string) --

    A token to specify where to start paginating. This is the NextToken from a previous response.

Return type
dict
Returns
Response Syntax
{
    'projects': [
        {
            'projectId': 'string',
            'projectArn': 'string'
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --
    • projects (list) --

      A list of projects.

      • (dict) --

        Information about the metadata for a project.

        • projectId (string) --

          The ID of the project.

        • projectArn (string) --

          The Amazon Resource Name (ARN) of the project.

    • NextToken (string) --

      A token to resume pagination.

class CodeStar.Paginator.ListResources
paginator = client.get_paginator('list_resources')
paginate(**kwargs)

Creates an iterator that will paginate through responses from CodeStar.Client.list_resources().

See also: AWS API Documentation

Request Syntax

response_iterator = paginator.paginate(
    projectId='string',
    PaginationConfig={
        'MaxItems': 123,
        'PageSize': 123,
        'StartingToken': 'string'
    }
)
Parameters
  • projectId (string) --

    [REQUIRED]

    The ID of the project.

  • PaginationConfig (dict) --

    A dictionary that provides parameters to control pagination.

    • MaxItems (integer) --

      The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken will be provided in the output that you can use to resume pagination.

    • PageSize (integer) --

      The size of each page.

    • StartingToken (string) --

      A token to specify where to start paginating. This is the NextToken from a previous response.

Return type

dict

Returns

Response Syntax

{
    'resources': [
        {
            'id': 'string'
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • resources (list) --

      An array of resources associated with the project.

      • (dict) --

        Information about a resource for a project.

        • id (string) --

          The Amazon Resource Name (ARN) of the resource.

    • NextToken (string) --

      A token to resume pagination.

class CodeStar.Paginator.ListTeamMembers
paginator = client.get_paginator('list_team_members')
paginate(**kwargs)

Creates an iterator that will paginate through responses from CodeStar.Client.list_team_members().

See also: AWS API Documentation

Request Syntax

response_iterator = paginator.paginate(
    projectId='string',
    PaginationConfig={
        'MaxItems': 123,
        'PageSize': 123,
        'StartingToken': 'string'
    }
)
Parameters
  • projectId (string) --

    [REQUIRED]

    The ID of the project for which you want to list team members.

  • PaginationConfig (dict) --

    A dictionary that provides parameters to control pagination.

    • MaxItems (integer) --

      The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken will be provided in the output that you can use to resume pagination.

    • PageSize (integer) --

      The size of each page.

    • StartingToken (string) --

      A token to specify where to start paginating. This is the NextToken from a previous response.

Return type

dict

Returns

Response Syntax

{
    'teamMembers': [
        {
            'userArn': 'string',
            'projectRole': 'string',
            'remoteAccessAllowed': True|False
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • teamMembers (list) --

      A list of team member objects for the project.

      • (dict) --

        Information about a team member in a project.

        • userArn (string) --

          The Amazon Resource Name (ARN) of the user in IAM.

        • projectRole (string) --

          The role assigned to the user in the project. Project roles have different levels of access. For more information, see Working with Teams in the AWS CodeStar User Guide .

        • remoteAccessAllowed (boolean) --

          Whether the user is allowed to remotely access project resources using an SSH public/private key pair.

    • NextToken (string) --

      A token to resume pagination.

class CodeStar.Paginator.ListUserProfiles
paginator = client.get_paginator('list_user_profiles')
paginate(**kwargs)

Creates an iterator that will paginate through responses from CodeStar.Client.list_user_profiles().

See also: AWS API Documentation

Request Syntax

response_iterator = paginator.paginate(
    PaginationConfig={
        'MaxItems': 123,
        'PageSize': 123,
        'StartingToken': 'string'
    }
)
Parameters
PaginationConfig (dict) --

A dictionary that provides parameters to control pagination.

  • MaxItems (integer) --

    The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken will be provided in the output that you can use to resume pagination.

  • PageSize (integer) --

    The size of each page.

  • StartingToken (string) --

    A token to specify where to start paginating. This is the NextToken from a previous response.

Return type
dict
Returns
Response Syntax
{
    'userProfiles': [
        {
            'userArn': 'string',
            'displayName': 'string',
            'emailAddress': 'string',
            'sshPublicKey': 'string'
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --
    • userProfiles (list) --

      All the user profiles configured in AWS CodeStar for an AWS account.

      • (dict) --

        Information about a user's profile in AWS CodeStar.

        • userArn (string) --

          The Amazon Resource Name (ARN) of the user in IAM.

        • displayName (string) --

          The display name of a user in AWS CodeStar. For example, this could be set to both first and last name ("Mary Major") or a single name ("Mary"). The display name is also used to generate the initial icon associated with the user in AWS CodeStar projects. If spaces are included in the display name, the first character that appears after the space will be used as the second character in the user initial icon. The initial icon displays a maximum of two characters, so a display name with more than one space (for example "Mary Jane Major") would generate an initial icon using the first character and the first character after the space ("MJ", not "MM").

        • emailAddress (string) --

          The email address associated with the user.

        • sshPublicKey (string) --

          The SSH public key associated with the user in AWS CodeStar. If a project owner allows the user remote access to project resources, this public key will be used along with the user's private key for SSH access.

    • NextToken (string) --

      A token to resume pagination.