list_projects
(**kwargs)¶Gets a list of the projects in an Amazon Web Services account.
See also: AWS API Documentation
Request Syntax
response = client.list_projects(
CreationTimeAfter=datetime(2015, 1, 1),
CreationTimeBefore=datetime(2015, 1, 1),
MaxResults=123,
NameContains='string',
NextToken='string',
SortBy='Name'|'CreationTime',
SortOrder='Ascending'|'Descending'
)
ListProjects
request was truncated, the response includes a NextToken
. To retrieve the next set of projects, use the token in the next request.CreationTime
.Ascending
.dict
Response Syntax
{
'ProjectSummaryList': [
{
'ProjectName': 'string',
'ProjectDescription': 'string',
'ProjectArn': 'string',
'ProjectId': 'string',
'CreationTime': datetime(2015, 1, 1),
'ProjectStatus': 'Pending'|'CreateInProgress'|'CreateCompleted'|'CreateFailed'|'DeleteInProgress'|'DeleteFailed'|'DeleteCompleted'|'UpdateInProgress'|'UpdateCompleted'|'UpdateFailed'
},
],
'NextToken': 'string'
}
Response Structure
(dict) --
ProjectSummaryList (list) --
A list of summaries of projects.
(dict) --
Information about a project.
ProjectName (string) --
The name of the project.
ProjectDescription (string) --
The description of the project.
ProjectArn (string) --
The Amazon Resource Name (ARN) of the project.
ProjectId (string) --
The ID of the project.
CreationTime (datetime) --
The time that the project was created.
ProjectStatus (string) --
The status of the project.
NextToken (string) --
If the result of the previous ListCompilationJobs
request was truncated, the response includes a NextToken
. To retrieve the next set of model compilation jobs, use the token in the next request.