DevOpsAgentService / Client / list_triggers
list_triggers¶
- DevOpsAgentService.Client.list_triggers(**kwargs)¶
Lists Triggers in the specified agent space
See also: AWS API Documentation
Request Syntax
response = client.list_triggers( agentSpaceId='string', status='string', nextToken='string', maxResults=123 )
- Parameters:
agentSpaceId (string) –
[REQUIRED]
The unique identifier for the agent space whose Triggers should be listed
status (string) – Filter results to Triggers in this status
nextToken (string) – Pagination token from a previous response to retrieve the next page of results
maxResults (integer) – The maximum number of results to return in a single response
- Return type:
dict
- Returns:
Response Syntax
{ 'items': [ { 'triggerId': 'string', 'agentSpaceId': 'string', 'type': 'string', 'condition': { 'schedule': { 'expression': 'string' } }, 'action': {...}|[...]|123|123.4|'string'|True|None, 'status': 'string', 'createdAt': datetime(2015, 1, 1), 'updatedAt': datetime(2015, 1, 1) }, ], 'nextToken': 'string' }
Response Structure
(dict) –
Response structure for listing Triggers
items (list) –
The list of Triggers
(dict) –
A Trigger fires on a schedule and invokes an agent
triggerId (string) –
The unique identifier for this Trigger
agentSpaceId (string) –
The agent space this Trigger belongs to
type (string) –
How this Trigger fires
condition (dict) –
The condition that fires this Trigger
Note
This is a Tagged Union structure. Only one of the following top level keys will be set:
schedule. If a client receives an unknown member it will setSDK_UNKNOWN_MEMBERas the top level key, which maps to the name or tag of the unknown member. The structure ofSDK_UNKNOWN_MEMBERis as follows:'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}
schedule (dict) –
Time-based firing condition
expression (string) –
The schedule expression
action (document) –
The action this Trigger performs when it fires
status (string) –
The status of this Trigger
createdAt (datetime) –
Timestamp when this Trigger was created
updatedAt (datetime) –
Timestamp when this Trigger was last updated
nextToken (string) –
Pagination token to retrieve the next page of results
Exceptions
DevOpsAgentService.Client.exceptions.ValidationExceptionDevOpsAgentService.Client.exceptions.ContentSizeExceededExceptionDevOpsAgentService.Client.exceptions.ServiceQuotaExceededExceptionDevOpsAgentService.Client.exceptions.ConflictExceptionDevOpsAgentService.Client.exceptions.InternalServerExceptionDevOpsAgentService.Client.exceptions.AccessDeniedExceptionDevOpsAgentService.Client.exceptions.ResourceNotFoundExceptionDevOpsAgentService.Client.exceptions.ThrottlingExceptionDevOpsAgentService.Client.exceptions.InvalidParameterException