DevOpsAgentService / Client / update_trigger
update_trigger¶
- DevOpsAgentService.Client.update_trigger(**kwargs)¶
Updates the status of an existing Trigger
See also: AWS API Documentation
Request Syntax
response = client.update_trigger( agentSpaceId='string', triggerId='string', status='string', clientToken='string' )
- Parameters:
agentSpaceId (string) –
[REQUIRED]
The unique identifier for the agent space containing the Trigger
triggerId (string) –
[REQUIRED]
The unique identifier of the Trigger to update
status (string) – The new status for the Trigger
clientToken (string) –
A unique, case-sensitive identifier used for idempotent Trigger update
This field is autopopulated if not provided.
- Return type:
dict
- Returns:
Response Syntax
{ 'trigger': { '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) } }
Response Structure
(dict) –
Response structure for updating a Trigger
trigger (dict) –
The Trigger object
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
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