Skip to main content

flows

Creates, updates, deletes, gets or lists a flows resource.

Overview

Nameflows
TypeResource
Idaws.quicksight.flows

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
flowobjectThe full details of the flow.
request_idstringThe Amazon Web Services request ID for this operation.
statusintegerThe HTTP status of the request.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_flowselectaws_account_id, flow_id, publish-state, regionReturns the full details of a flow for the latest version of the requested publish state.
search_flowsselectaws_account_id, regionSearch for the flows in an Amazon Web Services account.
list_flowsselectaws_account_id, regionnext-token, max-resultsLists flows in an Amazon Web Services account.
create_flowinsertaws_account_id, region, FlowDefinitionCreates a new flow in the specified Amazon Web Services account. Creates both a DRAFT and PUBLISHED (auto-published) version. This operation is idempotent. Supply a ClientToken to safely retry without creating duplicate resources.
update_flowupdateaws_account_id, flow_id, regionUpdates an existing flow. Supply only the fields you want to change. Updates both DRAFT and PUBLISHED versions. When FlowDefinition is provided, all existing steps are replaced with the new definition.
delete_flowdeleteaws_account_id, flow_id, regionPermanently deletes a flow from the specified Amazon Web Services account. This operation cannot be undone.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
aws_account_idstringThe ID of the Amazon Web Services account that contains the flow that you are deleting.
flow_idstringThe unique identifier of the flow to delete.
publish-statestringThe publish state of the flow version to describe. Valid values are DRAFT, PUBLISHED, or PENDING_APPROVAL.
regionstringAWS region (default: us-east-1)
max-resultsintegerThe maximum number of results to be returned per request.
next-tokenstringThe token to request the next set of results, or null if you want to retrieve the first set.

SELECT examples

Returns the full details of a flow for the latest version of the requested publish state.

SELECT
flow,
request_id,
status
FROM aws.quicksight.flows
WHERE aws_account_id = '{{ aws_account_id }}' -- required
AND flow_id = '{{ flow_id }}' -- required
AND `publish-state` = '{{ publish-state }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a new flow in the specified Amazon Web Services account. Creates both a DRAFT and PUBLISHED (auto-published) version. This operation is idempotent. Supply a ClientToken to safely retry without creating duplicate resources.

INSERT INTO aws.quicksight.flows (
Name,
Description,
FlowDefinition,
Permissions,
ClientToken,
aws_account_id,
region
)
SELECT
'{{ Name }}',
'{{ Description }}',
'{{ FlowDefinition }}' /* required */,
'{{ Permissions }}',
'{{ ClientToken }}',
'{{ aws_account_id }}',
'{{ region }}'
RETURNING
arn,
flow_id,
request_id,
status
;

UPDATE examples

Updates an existing flow. Supply only the fields you want to change. Updates both DRAFT and PUBLISHED versions. When FlowDefinition is provided, all existing steps are replaced with the new definition.

UPDATE aws.quicksight.flows
SET
Name = '{{ Name }}',
Description = '{{ Description }}',
FlowDefinition = '{{ FlowDefinition }}',
ClientToken = '{{ ClientToken }}'
WHERE
aws_account_id = '{{ aws_account_id }}' --required
AND flow_id = '{{ flow_id }}' --required
AND region = '{{ region }}' --required
RETURNING
arn,
flow_id,
request_id,
status;

DELETE examples

Permanently deletes a flow from the specified Amazon Web Services account. This operation cannot be undone.

DELETE FROM aws.quicksight.flows
WHERE aws_account_id = '{{ aws_account_id }}' --required
AND flow_id = '{{ flow_id }}' --required
AND region = '{{ region }}' --required
;