amazonka-swf

Derived from API version 2012-01-25 of the AWS service descriptions, licensed under Apache 2.0. The types from this library are intended to be used with amazonka, which provides mechanisms for specifying AuthN/AuthZ information, sending requests, and receiving responses. It is recommended to use generic lenses or optics from packages such as generic-lens or optics to modify optional fields and deconstruct responses. Generated lenses can be found in Amazonka.SWF.Lens and are suitable for use with a lens package such as lens or lens-family-core. See Amazonka.SWF and the AWS documentation to get started.


Keywords
cloud, distributed-computing, library, mpl, network, Propose Tags, amazonka, generic-lens, optics, Amazonka.SWF.Lens, lens, lens-family-core, Amazonka.SWF, AWS documentation, Skip to Readme, , Index, Quick Jump, Amazonka.SWF.CountClosedWorkflowExecutions, Amazonka.SWF.CountOpenWorkflowExecutions, Amazonka.SWF.CountPendingActivityTasks, Amazonka.SWF.CountPendingDecisionTasks, Amazonka.SWF.DeprecateActivityType, Amazonka.SWF.DeprecateDomain, Amazonka.SWF.DeprecateWorkflowType, Amazonka.SWF.DescribeActivityType, Amazonka.SWF.DescribeDomain, Amazonka.SWF.DescribeWorkflowExecution, Amazonka.SWF.DescribeWorkflowType, Amazonka.SWF.GetWorkflowExecutionHistory, Amazonka.SWF.ListActivityTypes, Amazonka.SWF.ListClosedWorkflowExecutions, Amazonka.SWF.ListDomains, Amazonka.SWF.ListOpenWorkflowExecutions, Amazonka.SWF.ListTagsForResource, Amazonka.SWF.ListWorkflowTypes, Amazonka.SWF.PollForActivityTask, Amazonka.SWF.PollForDecisionTask, Amazonka.SWF.RecordActivityTaskHeartbeat, Amazonka.SWF.RegisterActivityType, Amazonka.SWF.RegisterDomain, Amazonka.SWF.RegisterWorkflowType, Amazonka.SWF.RequestCancelWorkflowExecution, Amazonka.SWF.RespondActivityTaskCanceled, Amazonka.SWF.RespondActivityTaskCompleted, Amazonka.SWF.RespondActivityTaskFailed, Amazonka.SWF.RespondDecisionTaskCompleted, Amazonka.SWF.SignalWorkflowExecution, Amazonka.SWF.StartWorkflowExecution, Amazonka.SWF.TagResource, Amazonka.SWF.TerminateWorkflowExecution, Amazonka.SWF.Types, Amazonka.SWF.Types.ActivityTaskCancelRequestedEventAttributes, Amazonka.SWF.Types.ActivityTaskCanceledEventAttributes, Amazonka.SWF.Types.ActivityTaskCompletedEventAttributes, Amazonka.SWF.Types.ActivityTaskFailedEventAttributes, Amazonka.SWF.Types.ActivityTaskScheduledEventAttributes, Amazonka.SWF.Types.ActivityTaskStartedEventAttributes, Amazonka.SWF.Types.ActivityTaskTimedOutEventAttributes, Amazonka.SWF.Types.ActivityTaskTimeoutType, Amazonka.SWF.Types.ActivityType, Amazonka.SWF.Types.ActivityTypeConfiguration, Amazonka.SWF.Types.ActivityTypeInfo, Amazonka.SWF.Types.CancelTimerDecisionAttributes, Amazonka.SWF.Types.CancelTimerFailedCause, Amazonka.SWF.Types.CancelTimerFailedEventAttributes, Amazonka.SWF.Types.CancelWorkflowExecutionDecisionAttributes, Amazonka.SWF.Types.CancelWorkflowExecutionFailedCause, Amazonka.SWF.Types.CancelWorkflowExecutionFailedEventAttributes, Amazonka.SWF.Types.ChildPolicy, Amazonka.SWF.Types.ChildWorkflowExecutionCanceledEventAttributes, Amazonka.SWF.Types.ChildWorkflowExecutionCompletedEventAttributes, Amazonka.SWF.Types.ChildWorkflowExecutionFailedEventAttributes, Amazonka.SWF.Types.ChildWorkflowExecutionStartedEventAttributes, Amazonka.SWF.Types.ChildWorkflowExecutionTerminatedEventAttributes, Amazonka.SWF.Types.ChildWorkflowExecutionTimedOutEventAttributes, Amazonka.SWF.Types.CloseStatus, Amazonka.SWF.Types.CloseStatusFilter, Amazonka.SWF.Types.CompleteWorkflowExecutionDecisionAttributes, Amazonka.SWF.Types.CompleteWorkflowExecutionFailedCause, Amazonka.SWF.Types.CompleteWorkflowExecutionFailedEventAttributes, Amazonka.SWF.Types.ContinueAsNewWorkflowExecutionDecisionAttributes, Amazonka.SWF.Types.ContinueAsNewWorkflowExecutionFailedCause, Amazonka.SWF.Types.ContinueAsNewWorkflowExecutionFailedEventAttributes, Amazonka.SWF.Types.Decision, Amazonka.SWF.Types.DecisionTaskCompletedEventAttributes, Amazonka.SWF.Types.DecisionTaskScheduledEventAttributes, Amazonka.SWF.Types.DecisionTaskStartedEventAttributes, Amazonka.SWF.Types.DecisionTaskTimedOutEventAttributes, Amazonka.SWF.Types.DecisionTaskTimeoutType, Amazonka.SWF.Types.DecisionType, Amazonka.SWF.Types.DomainConfiguration, Amazonka.SWF.Types.DomainInfo, Amazonka.SWF.Types.EventType, Amazonka.SWF.Types.ExecutionStatus, Amazonka.SWF.Types.ExecutionTimeFilter, Amazonka.SWF.Types.ExternalWorkflowExecutionCancelRequestedEventAttributes, Amazonka.SWF.Types.ExternalWorkflowExecutionSignaledEventAttributes, Amazonka.SWF.Types.FailWorkflowExecutionDecisionAttributes, Amazonka.SWF.Types.FailWorkflowExecutionFailedCause, Amazonka.SWF.Types.FailWorkflowExecutionFailedEventAttributes, Amazonka.SWF.Types.HistoryEvent, Amazonka.SWF.Types.LambdaFunctionCompletedEventAttributes, Amazonka.SWF.Types.LambdaFunctionFailedEventAttributes, Amazonka.SWF.Types.LambdaFunctionScheduledEventAttributes, Amazonka.SWF.Types.LambdaFunctionStartedEventAttributes, Amazonka.SWF.Types.LambdaFunctionTimedOutEventAttributes, Amazonka.SWF.Types.LambdaFunctionTimeoutType, Amazonka.SWF.Types.MarkerRecordedEventAttributes, Amazonka.SWF.Types.PendingTaskCount, Amazonka.SWF.Types.RecordMarkerDecisionAttributes, Amazonka.SWF.Types.RecordMarkerFailedCause, Amazonka.SWF.Types.RecordMarkerFailedEventAttributes, Amazonka.SWF.Types.RegistrationStatus, Amazonka.SWF.Types.RequestCancelActivityTaskDecisionAttributes, Amazonka.SWF.Types.RequestCancelActivityTaskFailedCause, Amazonka.SWF.Types.RequestCancelActivityTaskFailedEventAttributes, Amazonka.SWF.Types.RequestCancelExternalWorkflowExecutionDecisionAttributes, Amazonka.SWF.Types.RequestCancelExternalWorkflowExecutionFailedCause, Amazonka.SWF.Types.RequestCancelExternalWorkflowExecutionFailedEventAttributes, Amazonka.SWF.Types.RequestCancelExternalWorkflowExecutionInitiatedEventAttributes, Amazonka.SWF.Types.ResourceTag, Amazonka.SWF.Types.ScheduleActivityTaskDecisionAttributes, Amazonka.SWF.Types.ScheduleActivityTaskFailedCause, Amazonka.SWF.Types.ScheduleActivityTaskFailedEventAttributes, Amazonka.SWF.Types.ScheduleLambdaFunctionDecisionAttributes, Amazonka.SWF.Types.ScheduleLambdaFunctionFailedCause, Amazonka.SWF.Types.ScheduleLambdaFunctionFailedEventAttributes, Amazonka.SWF.Types.SignalExternalWorkflowExecutionDecisionAttributes, Amazonka.SWF.Types.SignalExternalWorkflowExecutionFailedCause, Amazonka.SWF.Types.SignalExternalWorkflowExecutionFailedEventAttributes, Amazonka.SWF.Types.SignalExternalWorkflowExecutionInitiatedEventAttributes, Amazonka.SWF.Types.StartChildWorkflowExecutionDecisionAttributes, Amazonka.SWF.Types.StartChildWorkflowExecutionFailedCause, Amazonka.SWF.Types.StartChildWorkflowExecutionFailedEventAttributes, Amazonka.SWF.Types.StartChildWorkflowExecutionInitiatedEventAttributes, Amazonka.SWF.Types.StartLambdaFunctionFailedCause, Amazonka.SWF.Types.StartLambdaFunctionFailedEventAttributes, Amazonka.SWF.Types.StartTimerDecisionAttributes, Amazonka.SWF.Types.StartTimerFailedCause, Amazonka.SWF.Types.StartTimerFailedEventAttributes, Amazonka.SWF.Types.TagFilter, Amazonka.SWF.Types.TaskList, Amazonka.SWF.Types.TimerCanceledEventAttributes, Amazonka.SWF.Types.TimerFiredEventAttributes, Amazonka.SWF.Types.TimerStartedEventAttributes, Amazonka.SWF.Types.WorkflowExecution, Amazonka.SWF.Types.WorkflowExecutionCancelRequestedCause, Amazonka.SWF.Types.WorkflowExecutionCancelRequestedEventAttributes, Amazonka.SWF.Types.WorkflowExecutionCanceledEventAttributes, Amazonka.SWF.Types.WorkflowExecutionCompletedEventAttributes, Amazonka.SWF.Types.WorkflowExecutionConfiguration, Amazonka.SWF.Types.WorkflowExecutionContinuedAsNewEventAttributes, Amazonka.SWF.Types.WorkflowExecutionCount, Amazonka.SWF.Types.WorkflowExecutionFailedEventAttributes, Amazonka.SWF.Types.WorkflowExecutionFilter, Amazonka.SWF.Types.WorkflowExecutionInfo, Amazonka.SWF.Types.WorkflowExecutionInfos, Amazonka.SWF.Types.WorkflowExecutionOpenCounts, Amazonka.SWF.Types.WorkflowExecutionSignaledEventAttributes, Amazonka.SWF.Types.WorkflowExecutionStartedEventAttributes, Amazonka.SWF.Types.WorkflowExecutionTerminatedCause, Amazonka.SWF.Types.WorkflowExecutionTerminatedEventAttributes, Amazonka.SWF.Types.WorkflowExecutionTimedOutEventAttributes, Amazonka.SWF.Types.WorkflowExecutionTimeoutType, Amazonka.SWF.Types.WorkflowType, Amazonka.SWF.Types.WorkflowTypeConfiguration, Amazonka.SWF.Types.WorkflowTypeFilter, Amazonka.SWF.Types.WorkflowTypeInfo, Amazonka.SWF.UndeprecateActivityType, Amazonka.SWF.UndeprecateDomain, Amazonka.SWF.UndeprecateWorkflowType, Amazonka.SWF.UntagResource, Amazonka.SWF.Waiters, amazonka-swf-2.0.tar.gz, browse, Package description, Package maintainers, BrendanHay, edit package information , Version, Description, Contribute, Licence, Hackage, AWS API Reference, the AWS documentation, here on GitHub, Mozilla Public License Version 2.0, aws, haskell
License
MPL-2.0
Install
cabal install amazonka-swf-1.3.2

Documentation

Amazonka

MPL2 Hackage Build

An Amazon Web Services SDK for Haskell with support for most public services. Parts of the code contained in this repository are auto-generated and automatically kept up to date with Amazon's latest service APIs.

  • You can find the latest Haddock documentation for each respective library on the Amazonka website.
  • A release changelog can be found in lib/amazonka/CHANGELOG.md.
  • For problems, comments, or feedback please create an issue here on GitHub.

Table of Contents

License

Amazonka is licensed under the Mozilla Public License Version 2.0.

The AWS service descriptions are licensed under Apache 2.0. Source files derived from the service descriptions contain an additional licensing clause in their header.

Directory Layout

This repository is organised under the following directory structure:

  • lib/amazonka: The main library containing setup, authentication, and send logic. This will be your primary dependency.
  • lib/service/amazonka-*: A library per supported Amazon Web Service, you'll need to add a dependency on each selected service library.
  • lib/amazonka-core: The amazonka-core library upon which each of the services depends.
  • lib/amazonka-test: Common test functionality.
  • examples: Basic examples for using the service libraries.
  • configs: Service configuration, templates, and assets used by the code generator.
  • docs: The documentation website.
  • gen: The code and configuration generators.
  • scripts: Scripts to manage the project, such as the release lifecycle.

Supported Platforms and GHC Versions

GHC versions 9.0.*, 9.4.* and 9.6.* are officially supported and tested on NixOS, Ubuntu, and macOS. Earlier or later versions of GHC may also work, but only the aforementioned versions are tested by our continuous integration pipeline.

Getting Started

This repository is built using a combination of Nix and Cabal. If you're just using Amazonka as a git dependency in your Cabal or Stack project, you can skip the following steps and read Amazonka as a Git dependency. But if you plan on contributing to the codebase - welcome, read on!

1. Clone this repository

git clone git@github.com:brendanhay/amazonka.git
cd amazonka

2. Setup Nix

Building the code in this repository requires various development dependencies that are obtained and built via the Nix package manager in a reproducible and hermetic environment. You can install Nix by following the official installation instructions:

sh <(curl -L https://nixos.org/nix/install) --daemon

Once Nix is setup, you can enable the cache to avoid building dependencies:

nix-env -iA cachix -f https://cachix.org/api/v1/install
cachix use amazonka

A flake.nix is provided which will require your Nix configuration to enable flake support if you haven't done so already.

Edit either ~/.config/nix/nix.conf or /etc/nix/nix.conf and add:

experimental-features = nix-command flakes

If the Nix installation is in multi-user mode, don’t forget to restart the nix-daemon.

3. Enter a Nix Shell

The build tools are installed and activated upon entering a Nix shell, which is achieved by running the following command in the root of the repository:

nix develop

You can also enter a shell and by specifying one of the GHC versions declared by flake.nix, which can be inspected by running:

nix flake show
...
└───<system>
    β”œβ”€β”€β”€default: development environment 'amazonka-ghc944'
    β”œβ”€β”€β”€ghc810:  development environment 'amazonka-ghc8107'
    β”œβ”€β”€β”€ghc90:   development environment 'amazonka-ghc902'
    β”œβ”€β”€β”€ghc92:   development environment 'amazonka-ghc927'
    β”œβ”€β”€β”€ghc94:   development environment 'amazonka-ghc944'
    └───ghc96:   development environment 'amazonka-ghc961'

And then running nix develop for the desired version from the attribute list above:

nix develop '.#ghc90'

Note: the naming pattern for shells follows the GHC major versions available in nixpkgs. This means the minor versions will increment automatically as the flake.lock is updated.

If you have Direnv installed you can use the provided .envrc to automatically enter the default nix develop, which will also add the scripts directory to your PATH. You can extend this by adding your own uncommitted .envrc.local file. See the Direnv Wiki for various recipes.

Building the Project

The following commands assume you're already in a nix shell outlined in the previous step.

Once you've entered a Nix shell you can build amazonka-* packages via:

cabal build amazonka amazonka-s3

Or the entire project (which will take a very long time!):

cabal build all

Running the Code Generator

The gen package contain a code generator for synthesising Haskell data types, packages, and configuration from the botocore service definitions.

scripts/generate will run the code generator for all services configured in config/services, for example:

./scripts/generate

Or, you can selectively run the generator on one or more services:

./scripts/generate ec2 s3 iam

To update the botocore service definitions used by the generator, you can run:

./scripts/update-botocore

scripts/generate-configs will run the config generator to produce placeholder config/services configurations for any botocore services.

To generate configurations for any new/missing services:

./scripts/generate-configs

Service configurations generated in this way are intended as examples only and the resulting configs/services/<name>.json:libraryName (Haskell package name) and configs/annexes/<name>.json:serviceAbbreviation (Haskell package namespace) should be manually verified and curated as necessary.

For pull requests which affect generated output please do not include the regenerated amazonka-* packages, only commit updates to the build rules, documentation, generator, and related configuration. This is to make code review more manageable by focusing pertinent changes such as configuration and logic changes in pull requests and designates the maintainers and Continuous Integration as the source of truth for the generated code.

Amazonka as a Git Dependency

If there are as-yet-unreleased features or fixes that have yet to make it to Hackage, you can use the main (or another) development branch by declaring Amazonka as a Git dependency by following the Cabal or Stack instructions below.

Note: amazonka-core is a required dependency of the main amazonka package, in addition to amazonka-sts and amazonka-sso for sts:AssumeRoleWithWebIdentity and SSO via AWS IAM Identity Center, respectively. These required dependencies can then be supplemented by any additional service libraries you use from lib/services/amazonka-<service>.

Cabal

To add Amazonka as a Git dependency to your Cabal project, you will need to add a source-repository-package section for amazonka to your cabal.project file:

-- For amazonka
-- Multiple subdirs in a single `source-repository-package` stanza are supported by cabal-install >= 3.2.0.0.
source-repository-package
    type: git
    location: https://github.com/brendanhay/amazonka
    tag: <current revision of the `main` branch>
    subdir: lib/amazonka lib/amazonka-core lib/services/amazonka-sso lib/services/amazonka-sts lib/services/amazonka-<service>

Stack

Stack users should add an extra-deps: stanza to their stack.yaml:

extra-deps:
- github: brendanhay/amazonka
  commit: <current revision of the `main` branch>
  subdirs:
  - lib/amazonka
  - lib/amazonka-core
  - lib/services/amazonka-sso
  - lib/services/amazonka-sts
  - lib/services/amazonka-<service>

Haskell.nix + Stack

Stack users who also use haskell.nix will need to configure haskell.nix to fetch Amazonka commits from a specific git branch/rev by using the branchMap parameter:

pkgs.haskell-nix.project {
  branchMap = {
    "https://github.com/brendanhay/amazonka" = {
      "<git-commit-sha>" = "main";
    };
  };

  ...
}

Code Formatting

Provided automatically by the pre-commit hooks configured in flake.nix --- please use nix develop.

Third Party Packages

When naming an additional library which provides supplemental functionality to amazonka, if you want to use the amazonka-* namespace, then please consider prefixing your package names with amazonka-contrib-*. For example, amazonka-contrib-rds-utils.

This minimises potential future collisions with auto-generated package names and new AWS service and product releases.