list_operations
(**kwargs)¶Return a list of operations that occurred on an App Runner service.
The resulting list of OperationSummary objects is sorted in reverse chronological order. The first object on the list represents the last started operation.
See also: AWS API Documentation
Request Syntax
response = client.list_operations(
ServiceArn='string',
NextToken='string',
MaxResults=123
)
[REQUIRED]
The Amazon Resource Name (ARN) of the App Runner service that you want a list of operations for.
A token from a previous result page. It's used for a paginated request. The request retrieves the next result page. All other parameter values must be identical to the ones specified in the initial request.
If you don't specify NextToken
, the request retrieves the first result page.
The maximum number of results to include in each response (result page). It's used for a paginated request.
If you don't specify MaxResults
, the request retrieves all available results in a single response.
dict
Response Syntax
{
'OperationSummaryList': [
{
'Id': 'string',
'Type': 'START_DEPLOYMENT'|'CREATE_SERVICE'|'PAUSE_SERVICE'|'RESUME_SERVICE'|'DELETE_SERVICE'|'UPDATE_SERVICE',
'Status': 'PENDING'|'IN_PROGRESS'|'FAILED'|'SUCCEEDED'|'ROLLBACK_IN_PROGRESS'|'ROLLBACK_FAILED'|'ROLLBACK_SUCCEEDED',
'TargetArn': 'string',
'StartedAt': datetime(2015, 1, 1),
'EndedAt': datetime(2015, 1, 1),
'UpdatedAt': datetime(2015, 1, 1)
},
],
'NextToken': 'string'
}
Response Structure
(dict) --
OperationSummaryList (list) --
A list of operation summary information records. In a paginated request, the request returns up to MaxResults
records for each call.
(dict) --
Provides summary information for an operation that occurred on an App Runner service.
Id (string) --
A unique ID of this operation. It's unique in the scope of the App Runner service.
Type (string) --
The type of operation. It indicates a specific action that occured.
Status (string) --
The current state of the operation.
TargetArn (string) --
The Amazon Resource Name (ARN) of the resource that the operation acted on (for example, an App Runner service).
StartedAt (datetime) --
The time when the operation started. It's in the Unix time stamp format.
EndedAt (datetime) --
The time when the operation ended. It's in the Unix time stamp format.
UpdatedAt (datetime) --
The time when the operation was last updated. It's in the Unix time stamp format.
NextToken (string) --
The token that you can pass in a subsequent request to get the next result page. It's returned in a paginated request.
Exceptions
AppRunner.Client.exceptions.InvalidRequestException
AppRunner.Client.exceptions.InternalServiceErrorException
AppRunner.Client.exceptions.ResourceNotFoundException