Amazon Data Exchange · Arazzo Workflow

Amazon Data Exchange Update Event Action Destination

Version 1.0.0

Find an existing event action, repoint its export destination, and verify the change.

1 workflow 1 source API 1 provider
View Spec View on GitHub Data ExchangeData MarketplaceThird-Party DataAnalyticsSubscriptionsArazzoWorkflows

Provider

amazon-data-exchange

Workflows

update-event-action-destination
Repoint the first event action's export destination to a new bucket.
Lists event actions, updates the first one's ExportRevisionToS3 destination, and gets it back to confirm.
3 steps inputs: bucket, keyPattern outputs: action, eventActionId
1
listEventActions
listEventActions
List the event actions configured for the account.
2
updateEventAction
updateEventAction
Update the first event action to export to the new destination bucket.
3
verifyEventAction
getEventAction
Read the event action back to confirm the new destination configuration.

Source API Descriptions

Arazzo Workflow Specification

amazon-data-exchange-update-event-action-destination-workflow.yml Raw ↑
arazzo: 1.0.1
info:
  title: Amazon Data Exchange Update Event Action Destination
  summary: Find an existing event action, repoint its export destination, and verify the change.
  description: >-
    A maintenance flow for automated exports in AWS Data Exchange. The workflow
    lists the account's event actions, updates the first one to export to a new
    S3 destination bucket, and reads it back to confirm the change. Every step
    spells out its request inline so the flow can be read and executed without
    opening the underlying OpenAPI description.
  version: 1.0.0
sourceDescriptions:
- name: dataExchangeApi
  url: ../openapi/amazon-data-exchange-openapi.yml
  type: openapi
workflows:
- workflowId: update-event-action-destination
  summary: Repoint the first event action's export destination to a new bucket.
  description: >-
    Lists event actions, updates the first one's ExportRevisionToS3 destination,
    and gets it back to confirm.
  inputs:
    type: object
    required:
    - bucket
    properties:
      bucket:
        type: string
        description: The new destination S3 bucket for the event action export.
      keyPattern:
        type: string
        description: The key pattern for naming exported objects.
        default: ${Revision.CreatedAt}/${Asset.Name}
  steps:
  - stepId: listEventActions
    description: >-
      List the event actions configured for the account.
    operationId: listEventActions
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      eventActionId: $response.body#/EventActions/0/Id
  - stepId: updateEventAction
    description: >-
      Update the first event action to export to the new destination bucket.
    operationId: updateEventAction
    parameters:
    - name: EventActionId
      in: path
      value: $steps.listEventActions.outputs.eventActionId
    requestBody:
      contentType: application/json
      payload:
        Action:
          ExportRevisionToS3:
            RevisionDestination:
              Bucket: $inputs.bucket
              KeyPattern: $inputs.keyPattern
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      updatedAt: $response.body#/UpdatedAt
  - stepId: verifyEventAction
    description: >-
      Read the event action back to confirm the new destination configuration.
    operationId: getEventAction
    parameters:
    - name: EventActionId
      in: path
      value: $steps.listEventActions.outputs.eventActionId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      action: $response.body#/Action
  outputs:
    eventActionId: $steps.listEventActions.outputs.eventActionId
    action: $steps.verifyEventAction.outputs.action